Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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