11.6.3 Adding Bitmap, Pattern, and Mode Menus

You must create a MENU statement that defines the Bitmap, Pattern, and Mode menus used to choose the various bitmaps and modes that are part of the application. Add the following MENU statement to your resource-definition file:

BitmapMenu MENU
BEGIN
    POPUP "&Bitmap"
    BEGIN
        MENUITEM "", IDM_BITMAP1
    END

    POPUP "&Pattern"
    BEGIN
        MENUITEM "", IDM_PATTERN1
    END

    POPUP "&Mode"
    BEGIN
        MENUITEM "&WhiteOnBlack", IDM_WHITEONBLACK, CHECKED
        MENUITEM "&BlackOnWhite", IDM_BLACKONWHITE
        MENUITEM "&ColorOnColor", IDM_COLORONCOLOR
    END
END

The Bitmap and Pattern menus each contain a single MENUITEM statement. This statement defines a menu item that serves as a placeholder only. The application will add the actual items to use in the menu by using the AppendMenu function.