void CBCGPCommandManager::SetCustomNotificationBadge | ( | UINT | uiCmd, |
UINT_PTR | nData, | ||
BOOL | bRedraw = TRUE |
||
) |
Specifies a custom notification badge associated with a given command.
uiCmd | ID of command associated with the badge. |
nData | A user-defined data asociated with the custom notification badge. |
bRedraw | Specifies whether control bars should be redrawn. |
Call this method to specify a custom notification badge associated with the command ID. You have to override OnDrawCommandCustomNotificationBadge method in your CMainFrame class! The badge will be automatically displayed on all control bars which contain element(s) with specified id is located (toolbars, menus, ribbon bars).