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
Scrolls the specified cell into view horizontally and vertically so that it is displayed in the tree control's client area.
C
void WINAPI SftTree_MakeCellVisible(HWND hwndCtl, int index, int realCol); void WINAPI SftTreeSplit_MakeCellVisible(HWND hwndCtl, int index, int realCol);
C++
void CSftTree::MakeCellVisible(int index, int realCol); void CSftTreeSplit::MakeCellVisible(int index, int realCol);
hwndCtl
The window handle of the tree control.
index
The zero-based index of the cell to scroll into view.
realCol
The zero-based column number of the cell to make visible.
The MakeCellVisible function scrolls the specified cell into view horizontally and vertically so that it is displayed in the tree control's client area.
MakeCellVisible can be used to make a cell visible by scrolling it into view (horizontally and vertically). The user normally scrolls the tree control items horizontally and vertically using the scroll bars, but an application can use MakeCellVisible to insure that a cell is visible.
To make a column or item visible, use MakeColumnVisible or MakeRowVisible.
TCHAR szBuffer[100]; RECT rect; int height; HWND EditParent; HFONT hFont; SFTTREE_CELLINFOPARM CellInfo; /* Make the cell completely visible */ SftTree_MakeCellVisible(g_hwndTree, index, col); /* Get the location */ if (!SftTree_GetDisplayCellRect(g_hwndTree, index, col, TRUE, &rect, NULL)) return; if (SftTree_GetItemEditIgnore(g_hwndTree, index)) return; // this item can't be edited CellInfo.version = 7;
/* Start editing in response to a */ /* SFTTREEN_LBUTTONDOWN_TEXT notification. */ void CSampleView::StartEdit(int index, int col) { CRect rect; /* Make the cell completely visible */ m_Tree.MakeCellVisible(index, col); /* get the item location */ if (!m_Tree.GetDisplayCellRect(index, col, TRUE, &rect, NULL)) return; /* No column active */ if (m_Tree.GetItemEditIgnore(index)) return; // this item can't be edited SFTTREE_CELLINFOPARM CellInfo;
See Also C/C++ API | Categories | Notifications