Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

DisplayHeaderRect

Returns the dimensions of the column header area.

C

BOOL WINAPI SftTree_GetDisplayHeaderRect(HWND hwndCtl,
        int realCol,
        LPRECT lpRect,
        int* lpSpan);
BOOL WINAPI SftTreeSplit_GetDisplayHeaderRect(HWND hwndCtl,
        int realCol,
        LPRECT lpRect,
        int* lpSpan);

C++

BOOL CSftTree:GetDisplayHeaderRect(int dispCol,
        LPRECT lpRect,
        int* lpSpan) const;
BOOL CSftTreeSplit:GetDisplayHeaderRect(int dispCol,
        LPRECT lpRect,
        int* lpSpan) const;

Parameters

hwndCtl

The window handle of the tree control.

realCol

The zero-based column number whose location is to be retrieved.

lpRect

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

lpSpan

A pointer to a variable where the number of columns is returned that the column header occupies. If cell merging is allowed and the column header merges into an adjacent column header, a column header can span more than one column. This parameter may be NULL.

Returns

GetDisplayHeaderRect returns TRUE if successful, otherwise FALSE is returned.

Comments

The GetDisplayHeaderRect function returns the dimensions of the column header area.

The coordinates returned in lpRect are coordinates relative to the tree control's client area (in pixels).

The dimensions of the entire header area can be retrieved using GetHeaderRect.

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