Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

CellRectInfoEx

Returns the location of a cell, the cell text and cell picture.

C

BOOL WINAPI SftTree_GetCellRectInfoEx(HWND hwndCtl,
        int index,
        int realCol,
        BOOL fClient,
        LPRECT lpCellRect,
        LPRECT lpPictureRect,
        LPRECT lpTextRect);
BOOL WINAPI SftTreeSplit_GetCellRectInfoEx(HWND hwndCtl,
        int index,
        int realCol,
        BOOL fClient,
        LPRECT lpCellRect,
        LPRECT lpPictureRect,
        LPRECT lpTextRect);

C++

BOOL CSftTree::GetCellRectInfoEx(int index,
        int realCol,
        BOOL fClient,
        LPRECT lpCellRect,
        LPRECT lpPictureRect = NULL,
        LPRECT lpTextRect = NULL) const;
BOOL CSftTreeSplit::GetCellRectInfoEx(int index,
        int realCol,
        BOOL fClient,
        LPRECT lpCellRect,
        LPRECT lpPictureRect = NULL,
        LPRECT lpTextRect = NULL) const;

Parameters

hwndCtl

The window handle of the tree control.

index

The zero-based index of the item for which the cell position is to be retrieved.

realCol

The zero-based column number of the cell for which the position is to be retrieved.

fClient

Set to TRUE to limit the returned rectangles lpRect, lpPictureRect and lpTextRect to the tree control's client area and to adjust for horizontal scrolling. If set to FALSE, the rectangles returned are not clipped to the client area or otherwise adjusted for horizontal scrolling.

lpCellRect

A pointer to a RECT structure where the location of the cell is returned (in pixels).

lpPictureRect

A pointer to a RECT structure where the location of the cell picture is returned (in pixels). This parameter may be NULL. If a cell doesn't have a cell picture, an empty rectangle is returned.

lpTextRect

A pointer to a RECT structure where the location of the cell text is returned (in pixels). This parameter may be NULL. If a cell doesn't have cell text, an empty rectangle is returned.

Returns

GetCellRectInfoEx returns TRUE if successful, otherwise FALSE is returned.

Comments

The GetCellRectInfoEx function returns the location of a cell, the cell text and cell picture.

GetDisplayCellRect can be used to retrieve the coordinates of a cell. GetItemRect returns the coordinates of an entire item.

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