Menu and menu item styleΒΆ
style = flags
Menus |
|
WS_POPUP |
Top-level menus only. Defines the menu as a popup type, which is opened at a specified position within the parent window, normally in response to a right click by the user. |
Menu items |
|
Create the menu item disabled. A disabled item is not available for selection. |
|
Create invisible. |
|
WS_BULLET |
Use a bullet point, rather than a tick, to indicate that an item is checked. |
WS_CHECKED |
Create the item checked. This flag has identical functionality to the runtime Menu item check clause. |
If a menu item style is changed at runtime, the menu must be destroyed first and subsequently recreated. Note that this does not apply to popup menus, which are created every time they are opened; the style can therefore be assigned or removed at any time that the menu is not open.
The styles WS_FILE_MENU, WS_VIEW_MENU, WS_WINDOW_MENU and WS_VERB_MENU are only applicable to menu items in OLE control container windows. See OLE control menus for further details.
Default: if the style = clause is omitted or set to 0 no flags are set.
RELATED TOPICS |