MenuAddBitmapToItemfunction
Adds a bitmap to the menu item.
Syntax
FUNCTION MenuAddBitmapToItem (BYVAL hMenu AS HMENU, BYVAL item AS LONG, BYVAL fByPosition AS BOOLEAN, BYVAL hbmp AS HBITMAP) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
hMenu | Handle to the menu that contains the menu item. | |
item | The identifier or position of the menu item to change. The meaning of this parameter depends on the value of fByPosition. | |
fByPosition | The meaning of item. If this parameter is FALSE, item is a menu item identifier. Otherwise, it is a menu item position, where position = 1 for the first position, position = 2 for the second, and so on. | |
hbmp | The bitmap handle. |
Return value
Returns TRUE if the function succeeds; FALSE otherwise.
Description
Adds a bitmap to the menu item.
Reference
- Defined in AfxNova/AfxMenu.inc:1261
- Documented in Windows/Windows GUI/Menu Procedures.md
- Topic: About Menus