Help Center›AfxNova
CMenu.SetItemBitmapsmethod
Associates the specified bitmap with a menu item. Whether the menu item is selected or clear, the system displays the appropriate bitmap next to the menu item. Usage example: CMenu.CheckItem(hMenu, IDM_OPEN) CMenu.SetItemBitmaps(hMenu, IDM_OPEN, NULL, NULL)
Not documented upstream. This symbol was found in the AfxNova source but appears in no documentation topic. The signature below is read directly from the code; any description comes from the source comments.
Syntax
PRIVATE FUNCTION CMenu.SetItemBitmaps (BYVAL hMenu AS HMENU, BYVAL item AS LONG, BYVAL hBitmapUnchecked AS HBITMAP, BYVAL hBitmapChecked AS HBITMAP, BYVAL fByPosition AS BOOLEAN = FALSE) AS BOOLEAN
Description
Associates the specified bitmap with a menu item. Whether the menu item is selected or clear, the system displays the appropriate bitmap next to the menu item. Usage example: CMenu.CheckItem(hMenu, IDM_OPEN) CMenu.SetItemBitmaps(hMenu, IDM_OPEN, NULL, NULL)
Reference
- Include file
CMenu.inc - Defined in AfxNova/CMenu.inc:1364