共用方式為


CMFCColorBar::SelectPalette

Sets the logical palette of the specified device context to the palette of the parent button of the current color bar control.

CPalette* SelectPalette(
   CDC* pDC
);

Parameters

Parameter

Description

[in] pDC

Pointer to the device context of the parent button of the current color bar control.

Return Value

Pointer to the palette that is replaced by the palette of the parent button of the current color bar control.

Requirements

Header: afxcolorbar.h

See Also

Reference

Hierarchy Chart

CMFCColorBar Class