7.5 Working with Menus from Your Application

Windows provides functions you can use to change existing menus and create new menus, while your application runs. This section explains the following:

Enabling and disabling menu items

Checking and clearing (removing a check mark from) menu items

Adding, changing, and deleting menu items

Using bitmaps as menu items

Replacing menus

Creating and initializing menus from your application

When you create a window, it receives a private copy of the class menu. The application can alter that window's copy of the menu without affecting other windows' menus.

Note:

Whenever you make changes to menus on the menu bar, you must call the DrawMenuBar function to display the changes.