BOOL CBCGPRibbonPanel::SetElementMenu | ( | UINT | uiCmdID, |
UINT | uiMenuResID, | ||
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. |
uiMenuResID | Menu resource ID. |
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. |