SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Calculates the item index and column number given a point in tree control client area coordinates.
C
BOOL WINAPI SftTree_CalcCellFromPoint(HWND hwndCtl, LPPOINT lpPt, int * lpIndex, int * lpCol); BOOL WINAPI SftTreeSplit_CalcCellFromPoint(HWND hwndCtl, LPPOINT lpPt, int * lpIndex, int * lpCol);
C++
BOOL CSftTree::CalcCellFromPoint(LPPOINT lpPt, int* lpIndex, int* lpCol) const; BOOL CSftTreeSplit::CalcCellFromPoint(LPPOINT lpPt, int* lpIndex, int* lpCol) const;
hwndCtl
The window handle of the tree control.
lpPt
The x and y coordinates in pixels (relative to the upper left corner of the tree control), for which the item index and column number need to be calculated.
lpIndex
A pointer to an integer where the item index is returned.
lpCol
A pointer to an integer where the column number is returned.
The return value is TRUE if the function was successful, otherwise FALSE.
The CalcCellFromPoint function calculates the item index and column number given a point in tree control client area coordinates.
If the location lpPt is not located in a cell, FALSE is returned.
Use CalcIndexFromPoint to determine the item index or CalcColumnFromPoint to determine the column number.
See Also C/C++ API | Categories | Notifications