HeaderPane
Main
Hide
Share Link
Print

InheritBgColor

Defines whether the area to the left of the first cell inherits the cell's background color.

C

BOOL WINAPI SftBox_GetInheritBgColor(HWND hwndCtl);
void WINAPI SftBox_SetInheritBgColor(HWND hwndCtl, BOOL fSet);

C++

BOOL CSftBox::GetInheritBgColor() const;
void CSftBox::SetInheritBgColor(BOOL fSet);

Parameters

hwndCtl

The window handle of the combo box 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 background colors defined using SetCtlColors (SFTBOX_COLORS, colorBg and colorSelBg). Otherwise, the background color of the cell in the first displayed column is used. Cell colors are defined using SetCellInfo (SFTBOX_CELL, colorBg and colorBgSel). If the cell has no background color, the column's background color is used. Column colors are defined using SetColumns (SFTBOX_COLUMN, colorBg and colorBgSel). Only the background color is inherited.

The setting applies to the dropdown portion and the static portion of the combo box control.

See Also C/C++ API | Categories | Notifications


Last Updated 11/21/2026 - (email)
© 2026 Softel vdm, Inc.