Defines the width of the row header area.
C
int WINAPI SftBox_GetRowHeaderWidth(HWND hwndCtl); void WINAPI SftBox_SetRowHeaderWidth(HWND hwndCtl, int width);
C++
int CSftBox::GetRowHeaderWidth() const; void CSftBox::SetRowHeaderWidth(int width);
hwndCtl
The window handle of the combo box control.
width
The new row header area width in pixels (see SetPixelScaling). If 0 is specified, row headers are hidden. If a value less than 0 is specified, the row header area of each portion is set to the optimal width for that portion.
GetRowHeaderWidth returns the current width (in pixels) of the row header area.
The GetRowHeaderWidth and SetRowHeaderWidth functions define the width of the row header area.
The width applies to the row header area of the static portion and the dropdown portion.
CalcOptimalRowHeaderWidth or MakeRowHeaderOptimal can be used to calculate or define the optimal width for the row (and row/column) header area. An optimal width allows all text and pictures in the row headers to be displayed in their entirety, without being clipped.
Row headers are only shown while the row header width is greater than 0. Setting the width to 0 hides the row headers, setting a width greater than 0 shows them using the style defined by SetShowRowHeader. SetShowRowHeader with a style other than SFTBOX_ROWSTYLE_NONE also shows the row headers, using a small default width if the current width is 0. The row header width is initially 0, so row headers are not shown.
See Also C/C++ API | Categories | Notifications