BCGControlBar Pro for MFC
static int CBCGPRibbonPaletteButton::GetLastSelectedItem ( UINT  uiCmdID)
static

Returns index of item that was selected last time when user selected an item in popup palette.

When user has selected any item in popup palette, the library sends the WM_COMMAND message along with Command ID of menu button that opened the popup palette.

In the command handler you need to determine what item has been selected. The static method GetLastSelectedItem returns the index of selected item.

Parameters
uiCmdIDSpecifies Command ID of menu item that opened a popup palette.