BCGControlBar Pro for MFC
int CBCGPRibbonPaletteButton::GetPaletteID ( ) const
inline

Returns the current palette Command ID.

Palette Command ID is being sent along with the WM_COMMAND message, when a palette item has been selected.

Call the GetLastSelectedItem() static method to determine the exact palette item that has been selected.