共用方式為


CMFCColorBar::GetCommandID

Retrieves the command ID of the current color bar control.

UINT GetCommandID() const;

Return Value

A command ID.

Remarks

When the user selects a new color, the framework sends the command ID in a WM_COMMAND message to notify the parent of the CMFCColorBar object.

Requirements

Header: afxcolorbar.h

See Also

Reference

CMFCColorBar Class

Hierarchy Chart