Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Retrieves the color that corresponds to a specified command ID.
static COLORREF GetColorByCmdID(
UINT uiCmdID
);
Parameters
- [in] uiCmdID
A command ID.
Return Value
The color that corresponds to the specified command ID.
Remarks
Use this method when you have several color buttons in an application. When the user clicks a color button, the button sends its command ID in a WM_COMMAND message to its parent. The GetColorByCmdID method uses the command ID to retrieve the corresponding color.
Requirements
Header: afxcolormenubutton.h