CTreeCtrl::GetBkColor
This member function implements the behavior of the Win32 message TVM_GETBKCOLOR, as described in the Windows SDK.
COLORREF GetBkColor( ) const;
Return Value
A COLORREF value that represents the current window background color for the control. If this value is -1, the control is using the system window color. In this case, you can use ::GetSysColor(COLOR_WINDOW) to get the current system color that the control is using.
Example
See the example for CTreeCtrl::SetTextColor.
Requirements
Header: afxcmn.h
See Also
Reference
Other Resources
Change History
Date |
History |
Reason |
---|---|---|
June 2010 |
Added text to clarify the meaning of "background color." |
Customer feedback. |