Use a bitmap menu item - set bitmap type tag

zhaozj2021-02-08  195

Set bitmap type tag

MFT_bitmap or MF_Bitmap tag tells the system to use a bitmap to replace a text string to display a menu item. MFT_bitmap or MF_bitmap tag of a menu item must be set at runtime; you cannot set it in the resource definition file.

For new applications, you can use the SetMenuItemInfo or InsertMenuItem function to set the MFT_bitmap type tag. To change a menu item from a text item into a bitmap, use SetMenuItemInfo. To add a new bitmap item to the menu, use the INSERTMENUITEM function.

The system's early application works can continue to set the MF_bitmap tag using the ModifyMenu, InsertMenu, or the appendmenu function. To change a menu item from a text item into a bitmap, use ModifyMenu. To add a new bitmap item to the menu, use the INSERTMENU or APPENDMENU function.

转载请注明原文地址:https://www.9cbs.com/read-3421.html

New Post(0)