Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

RowHeaderRect

Returns the dimensions of the row header area.

C

void WINAPI SftTree_GetRowHeaderRect(HWND hwndCtl,
        int index,
        LPRECT lpRect);
void WINAPI SftTreeSplit_GetRowHeaderRect(HWND hwndCtl,
        int index,
        LPRECT lpRect);

C++

void CSftTree::GetRowHeaderRect(int index, LPRECT lpRect) const;
void CSftTreeSplit::GetRowHeaderRect(int index, LPRECT lpRect) const;

Parameters

hwndCtl

The window handle of the tree control.

index

The zero-based index of the item for which the row header location is to be retrieved.

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 number is specified or row headers are not shown (see SetShowRowHeader).

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

Row headers are made visible using SetShowRowHeader.

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