You need to add a MENU statement to your resource script file. This statement defines the Bitmap, Pattern, and Mode menus used to choose the various bitmaps and modes that are used in the application. Add the following MENU statement to the resource script 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 command that serves as a placeholder only. The application will add the actual commands to use in the menu by using the AppendMenu function.