BCGSuite for MFC
int CBCGPToolbarUndoButton::GetSelectedActions ( ) const
inline

Returns the number of actions selected by the user.

The button's command is executed when the user either clicks the button itself, or selects a number of commands from the drop-down list. You need to call this method inside the BCGM_ON_SELECT_UNDO_ACTIONS registered message handler.