HeaderPane
Main
Hide
Share Link
Print

RowHeaderRect

Returns the dimensions of the row header area.

C

void WINAPI SftBox_GetRowHeaderRect(HWND hwndCtl, LONG indexTC, LPRECT lpRect);

C++

void CSftBox::GetRowHeaderRect(LONG indexTC, LPRECT lpRect) const;

Parameters

hwndCtl

The window handle of the combo box control.

indexTC

The zero-based index of the item for which the row header location in the dropdown portion is to be retrieved. Specify -1 to retrieve the location of the row header shown in the static portion.

lpRect

A pointer to a RECT structure where the location of the requested row header is returned.

Comments

The GetRowHeaderRect function returns the dimensions of the row header area.

An empty rectangle is returned if an invalid item index is specified, if row headers are not shown (see SetShowRowHeader) or, if indexTC is -1, if no item is selected.

The coordinates returned in lpRect are in pixels, relative to the client area of the dropdown portion. If indexTC is -1, the coordinates are relative to the client area of the static portion.

Row headers are made visible using SetShowRowHeader.

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


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