Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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