The Menu

Most applications include a menu to provide a means for the user to select commands. The most common way to create a menu is to define it as a resource in the resource-definition file. The Generic application has a single menu, named Help, with a single command, About. The resource is defined as follows.

GenericAppMenu MENU
{
   POPUP "&Help"
   {
      MENUITEM "&About",         IDM_ABOUT
   }
}

The name of the menu resource is specified when registering the window class.

Selecting the About command causes Generic to display the About dialog box.

See Also

Source Code

 

 

Build date: 3/25/2010