ID Number: Q78858
1.00
WINDOWS
Summary:
When using the QCase:W utility shipped with the Microsoft QuickC for
Windows Compiler (QC/Win) version 1.0, generating a submenu brings up
a menu item dialog box. Within this box, the initial state of the menu
can be set to ACTIVE, GRAYED, or CHECKED. Windows programming allows
these options to be used together; however, QCase:W does not.
More Information:
QCase:W imposes a limitation of only one initial menu item state.
However, the default for Windows is ACTIVE; therefore, choosing
CHECKED gives the user an active menu that is checked, and choosing
GRAYED overrides the default and gives a grayed menu.
To bypass this limitation, edit the resource file and append the extra
values you want to the end of the MENUITEM statement. For example,
QCase:W may generate the following:
MENUITEM "MY MENU", IDM_F_MYMENU, GRAYED
To have a check in the grayed menu item, append as follows:
MENUITEM "MY MENU", IDM_F_MYMENU, GRAYED, CHECKED
Other MENUITEM options not available through QCase:W are listed on
page 165 of the "Microsoft QuickC for Windows Toolkit" manual.
Note: Having more than one initial state for a menu item is not a
common programming practice.
Additional reference words: 1.00