|
|
|
InheritBgColor |
Defines whether the area to the left of the first cell inherits the cell's background color.
C
BOOL WINAPI SftTree_GetInheritBgColor(HWND hwndCtl); void WINAPI SftTree_SetInheritBgColor(HWND hwndCtl, BOOL fSet); BOOL WINAPI SftTreeSplit_GetInheritBgColor(HWND hwndCtl); void WINAPI SftTreeSplit_SetInheritBgColor(HWND hwndCtl, BOOL fSet);
C++
BOOL GetInheritBgColor() const; void SetInheritBgColor(BOOL fSet = TRUE); BOOL GetInheritBgColor() const; void SetInheritBgColor(BOOL fSet = TRUE);
Parameters
hwndCtl
The window handle of the tree control.
fSet
Set to TRUE to inherit the background color, otherwise set to FALSE.
Returns
GetInheritBgColor returns a value indicating whether the background color is inherited. TRUE is returned if the column or cell background color is inherited, otherwise FALSE.
Comments
The GetInheritBgColor and SetInheritBgColor functions define whether the area to the left of the first cell inherits the cell's background color.
If FALSE is specified, the area to the left of the first cell uses the foreground and background colors defined using SetCtlColors (SFTTREE_COLORS, colorFg and colorBg, colorSelFg and colorSelBg). Otherwise, the column or cell specific colors of the first displayed column are used. Column colors are defined using SetColumns (SFTTREE_COLUMN_EX, colorFg and colorBg, colorFgSel and colorBgSel). Cell colors are defined using SetCellInfo (SFTTREE_CELL, colorFg and colorBg, colorFgSel and colorBgSel).
See Also C/C++ API | Categories | Notifications