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
Returns the previous visible item.
C
int WINAPI SftTree_GetPrevShown(HWND hwndCtl, int index); int WINAPI SftTreeSplit_GetPrevShown(HWND hwndCtl, int index);
C++
int CSftTree::GetPrevShown(int index) const; int CSftTreeSplit::GetPrevShown(int index) const;
hwndCtl
The window handle of the tree control.
index
The zero-based index of the item before which the previous visible item should be located. To locate the last visible item (if present) in a tree control specify -1.
The return value is the index of the previous visible item or -1 if no item is visible.
The GetPrevShown function returns the previous visible item.
GetPrevShown is used to find the previous visible item, given an item index. Dependent items of a collapsed parent item are skipped using this function.
GetNextShown can be used to retrieve the next visible item.
// displayed columns // Please note that cell merging is not supported. int index = m_editIndex, col = m_editCol; int dispCol, firstDispCol, lastDispCol; LPSFTTREE_COLUMN_EX lpCol; int nCols; int lastShown = SftTree_GetPrevShown(g_hwndTree, -1); // get general information about tree control and columns nCols = SftTree_GetColumnsEx(g_hwndTree, &lpCol);/* Get column attributes */ dispCol = SftTree_GetDisplayColumn(g_hwndTree, col); firstDispCol = SftTree_GetFirstDisplayColumn(g_hwndTree); lastDispCol = SftTree_GetLastDisplayColumn(g_hwndTree);
// displayed columns // Please note that cell merging is not supported. int index = m_editIndex, col = m_editCol; int dispCol, firstDispCol, lastDispCol; LPSFTTREE_COLUMN_EX lpCol; int nCols; int lastShown = m_Tree.GetPrevShown(-1); // get general information about tree control and columns nCols = m_Tree.GetColumns(&lpCol);/* Get column attributes */ dispCol = m_Tree.GetDisplayColumn(col); firstDispCol = m_Tree.GetFirstDisplayColumn(); lastDispCol = m_Tree.GetLastDisplayColumn();
See Also C/C++ API | Categories | Notifications