BOOL CBCGPRibbonPanel::SetElementMenu | ( | UINT | uiCmdID, |
HMENU | hMenu, | ||
BOOL | bIsDefaultCommand = FALSE , |
||
BOOL | bRightAlign = FALSE |
||
) |
Assigns a popup menu to element with the given command ID.
Assigns a popup menu to element with the given command ID.
uiCmdID | Element's command ID. |
hMenu | Handle to Windows menu. |
bIsDefaultCommand | If TRUE, the element can also execute its command. In this case the menu is opened when user clicks on the arrow area. If FALSE, the element can not execute its command and the popup menu appears always, no matter where users clicks the element. |
bRightAlign | Specifies the popup menu alignment. |