Returns the dimensions of the column header area.
C
void WINAPI SftBox_GetHeaderRect(HWND hwndCtl, BOOL fMain, int iCol, LPRECT lpRect);
C++
void CSftBox::GetHeaderRect(BOOL fMain, int iCol, LPRECT lpRect) const;
hwndCtl
The window handle of the combo box control.
fMain
Set to TRUE to retrieve the location of a column header of the static portion. Set to FALSE to retrieve the location of a column header of the dropdown portion.
iCol
The zero-based column number whose column header location is to be retrieved. If -1 is specified, the location of the entire column header area is returned.
lpRect
A pointer to a RECT structure where the location of the requested column header is returned.
The GetHeaderRect function returns the dimensions of the column header area.
An empty rectangle is returned if an invalid column number is specified or column headers are not shown in the portion described by fMain (see SetShowHeader).
The coordinates returned in lpRect are in pixels, relative to the portion of the combo box control described by fMain (the static portion or the dropdown portion, see GetHWNDDropDown).
The row/column header area can be retrieved using GetRowColHeaderRect.
See Also C/C++ API | Categories | Notifications