HeaderPane
Main
Hide
Share Link
Print

RowColHeaderRect

Returns the dimensions of the row/column header area.

C

void WINAPI SftBox_GetRowColHeaderRect(HWND hwndCtl, BOOL fMain, LPRECT lpRect);

C++

void CSftBox::GetRowColHeaderRect(BOOL fMain, LPRECT lpRect) const;

Parameters

hwndCtl

The window handle of the combo box control.

fMain

Set to TRUE to retrieve the location of the row/column header of the static portion, FALSE to retrieve the location of the row/column header of the dropdown portion.

lpRect

A pointer to a RECT structure where the coordinates will be returned.

Returns

The returned RECT structure describes the location of the row/column header area.

Comments

The GetRowColHeaderRect function returns the dimensions of the row/column header area.

The coordinates returned in lpRect are in pixels, relative to the client area of the portion selected using fMain.

An empty rectangle is returned if the row/column header is not shown.

The row/column header area of a portion is only shown if row headers and column headers are both shown in that portion (see SetShowRowHeader, SetShowHeader, SetShowHeaderMain and SetShowHeaderDropDown).

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


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