다음을 통해 공유


CMFCColorMenuButton::GetColorByCmdID

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

See Also

Reference

CMFCColorMenuButton Class

Hierarchy Chart

COLORREF