CMenu::SetMenuItemBitmaps
BOOL SetMenuItemBitmaps( UINT nPosition, UINT nFlags, const CBitmap* pBmpUnchecked, const CBitmap* pBmpChecked );Return ValueNonzero if the function is successful; otherwise 0.ParametersnPositionSpecifies the menu item to be changed. The nFlags parameter can be used to interpret nPosition in the following ways:nFlags Interpretation of nPosition
MF_BYCOMMAND Specifies that the parameter gives the command ID of the existing menu item. This is the default if neither MF_BYCOMMAND nor MF_BYPOSITION is set.
MF_BYPOSITION Specifies that the parameter gives the position of the existing menu item. The first item is at position 0.
nFlagsSpecifies how nPosition is interpreted.pBmpUncheckedSpecifies the bitmap to use for menu items that are not checked.pBmpCheckedSpecifies the bitmap to use for menu items that are checked.
BOOL SetMenuItemBitmaps( UINT nPosition, UINT nFlags, const CBitmap* pBmpUnchecked, const CBitmap* pBmpChecked );Return ValueNonzero if the function is successful; otherwise 0.ParametersnPositionSpecifies the menu item to be changed. The nFlags parameter can be used to interpret nPosition in the following ways:nFlags Interpretation of nPosition
MF_BYCOMMAND Specifies that the parameter gives the command ID of the existing menu item. This is the default if neither MF_BYCOMMAND nor MF_BYPOSITION is set.
MF_BYPOSITION Specifies that the parameter gives the position of the existing menu item. The first item is at position 0.
nFlagsSpecifies how nPosition is interpreted.pBmpUncheckedSpecifies the bitmap to use for menu items that are not checked.pBmpCheckedSpecifies the bitmap to use for menu items that are checked.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货