13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

InsertMenuMF _BYPOSITIONMF_CHECKEDMF_GRAYEDMF _MENUBARBREAKMF_OWNERDRAWSpecifies that the nPosition parameter givesthe position of the menu item to be changedrather than an ID number.Places a checkmark next to the menu item. Ifthe application has supplied checkmarkbitmaps (see the SetMenultemBitmapsfunction), setting this flag displays the"checkmark on" bitmap next to the menuitem.Disables the menu item so that it cannot beselected, but does not gray it.Enables the menu item so that it can beselected and restores it from its grayed state.Disables the menu item so that it cannot beselected and grays it.Same as MF _MENUBREAK except that forpop-up menus, separates the new columnfrom the old column with a vertical line.Places the menu item on a new line for staticmenu-bar items. For pop-up menus, placesthe menu item in a new column, with nodividing line between the columns.Specifies that the item is an owner-draw item.The window that owns the menu receives aWM_MEASUREITEM message when themenu is displayed for the first time to retrievethe height and width of the menu item. TheWM_DRAWITEM message is then sent to theowner whenever the owner must update thevisual appearance of the menu item. Thisoption is not valid for a top-level menu item.Specifies that the menu item has a pop-upmenu associated with it. The wIDNewItemparameter specifies a handle to a pop-upmenu to be associated with the item. Use theMF _ OWNERDRA W flag to add either a toplevelpop-up menu or a hierarchical pop-upmenu to a pop-up menu item.Draws a horizontal dividing line. You can usethis flag in a pop-up menu. This line cannotbe grayed, disabled, or highlighted. Windowsignores the IpNewItem and wIDNewItemparameters.390Software development kit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!