共用方式為


CToolBarCtrl::GetColorScheme

Retrieves the color scheme of the current toolbar control.

BOOL GetColorScheme(
     COLORSCHEME* lpColorScheme
) const;

Parameters

Parameter

Description

[out] lpColorScheme

Pointer to a COLORSCHEME structure that receives the color scheme information. When this method returns, the structure describes the highlight color and shadow color of the toolbar control.

Return Value

true if this method is successful; otherwise, false.

Remarks

This method sends the TB_GETCOLORSCHEME message, which is described in the Windows SDK. 

Requirements

Header: afxcmn.h

See Also

Reference

CToolBarCtrl Class

Hierarchy Chart

TB_GETCOLORSCHEME

COLORSCHEME

CToolBarCtrl::SetColorScheme