Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

ClickAgainPos

Returns the location of the item that was clicked again.

C

BOOL WINAPI SftTree_GetClickAgainPos(HWND hwndCtl, int* index, int* realCol);
BOOL WINAPI SftTreeSplit_GetClickAgainPos(HWND hwndCtl, int* index, int* realCol);

C++

BOOL CSftTree::GetClickAgainPos(int* index, int* realCol) const;
BOOL CSftTreeSplit::GetClickAgainPos(int* index, int* realCol) const;

Parameters

hwndCtl

The window handle of the tree control.

index

A pointer to an integer where the item index is returned.

realCol

A pointer to an integer where the column number is returned.

Returns

The return value is TRUE if the function was successful, otherwise FALSE.

Comments

The GetClickAgainPos function returns the location of the item that was clicked again.

If a mouse button is clicked on a cell (any column) of an already selected item, the SFTTREEN_LBUTTONDOWN_TEXTAGAIN notification is generated. The notification is only generated if there is a sufficiently long pause between the first click to select the item and the second click. If the pause is not long enough, the SFTTREEN_LBUTTONDBLCLK_TEXT notification is generated instead.

GetClickAgainPos can be used to determine the index and column number where the click occurred when a SFTTREEN_LBUTTONDOWN_TEXTAGAIN notification is generated.

Use CalcIndexFromPoint to determine the item index or CalcCellFromPoint to determine the cell.

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