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
Defines the position of text displayed in the row headers.
C
DWORD WINAPI SftTree_GetRowHeaderStyle(HWND hwndCtl); void WINAPI SftTree_SetRowHeaderStyle(HWND hwndCtl, DWORD style); DWORD WINAPI SftTreeSplit_GetRowHeaderStyle(HWND hwndCtl); void WINAPI SftTreeSplit_SetRowHeaderStyle(HWND hwndCtl, DWORD style);
C++
DWORD CSftTree::GetRowHeaderStyle() const; void CSftTree::SetRowHeaderStyle(DWORD style); DWORD CSftTreeSplit::GetRowHeaderStyle() const; void CSftTreeSplit::SetRowHeaderStyle(DWORD style);
hwndCtl
The window handle of the tree control.
style
The row header style used for all row headers. This value applies to all row headers.
One value of each of the following tables can be combined and passed as style parameter.
style | Horizontal row header text alignment |
---|---|
not specified | If no horizontal row header text alignment is specified, the default is ES_LEFT. |
ES_LEFT | The row header text is left aligned within the row header. Row headers can override this default by defining new alignment values using the SFTTREE_ROW, flag member. |
ES_CENTER | The row header text is centered within the row header. Row headers can override this default by defining new alignment values using the SFTTREE_ROW, flag member. |
ES_RIGHT | The row header text is right aligned within the row header. Row headers can override this default by defining new alignment values using the SFTTREE_ROW, flag member. |
style | Vertical row header text alignment |
---|---|
not specified | If no vertical row header text alignment is specified, the default is SFTTREE_VCENTER. |
SFTTREE_TOP | The row header text and picture are aligned with the top of the row header. Row headers can override this default by defining new alignment values using the SFTTREE_ROW, flag member. |
SFTTREE_VCENTER | The row header text and picture are vertically centered within the row header. Row headers can override this default by defining new alignment values using the SFTTREE_ROW, flag member. |
SFTTREE_BOTTOM | The row header text and picture are aligned with the bottom of the row header. Row headers can override this default by defining new alignment values using the SFTTREE_ROW, flag member. |
The style value can optionally be combined with one or more of the following values:
SFTTREE_HEADER_DISABLED | The row headers are disabled, cannot be clicked and are displayed in a "grayed" fashion. The item contents are otherwise unaffected. |
SFTTREE_HEADER_UP | The row header buttons will automatically return to their "up" position when clicked. |
GetRowHeaderStyle returns a value indicating the position of the text displayed in row headers.
The GetRowHeaderStyle and SetRowHeaderStyle functions define the position of text displayed in the row headers.
The row header style defined using SetRowHeaderStyle affects all row headers, individual items cannot override the style given.
Row header text can be defined using SetRowText.
Row headers are made visible using SetShowRowHeader.
0, /* Column flag */ 0, /* Minimum column width */ } }; SftTree_SetColumnsEx(m_hwndLeftTree, 1, aCol);/* Set column attributes */ } SftTree_SetShowRowHeader(m_hwndLeftTree, SFTTREE_ROWSTYLE_BUTTONCOUNT0);/* Row style */ SftTree_SetRowHeaderStyle(m_hwndLeftTree, ES_LEFT | SFTTREE_HEADER_UP);/* Row header style */ SftTree_SetDragBitmaps(m_hwndLeftTree, TRUE);/* Allow drag & drop from item, label pictures */ SftTree_SetDragType(m_hwndLeftTree, SFTTREE_DRAG_PIXELIMM);/* Select and move by a number of pixels to start drag */ SftTree_SetDropHighlightStyle(m_hwndLeftTree, SFTTREE_DROPHIGHLIGHT_BETWEEN);/* Draw line to represent drop target */ SftTree_SetCharSearchMode(m_hwndLeftTree, SFTTREE_CHARSEARCH_ALLCHARS, -1);/* Consider all characters typed */ /* Change the default colors */ { SFTTREE_COLORS Colors;
0, /* Column flag */ 0, /* Minimum column width */ } }; m_LeftTree.SetColumns(1, aCol); /* Set column attributes */ } m_LeftTree.SetShowRowHeader(SFTTREE_ROWSTYLE_BUTTONCOUNT0);/* Row style */ m_LeftTree.SetRowHeaderStyle(ES_LEFT | SFTTREE_HEADER_UP);/* Row header style */ m_LeftTree.SetDragBitmaps(TRUE); /* Allow drag & drop from item, label pictures */ m_LeftTree.SetDragType(SFTTREE_DRAG_PIXELIMM);/* Select and move by a number of pixels to start drag */ m_LeftTree.SetDropHighlightStyle(SFTTREE_DROPHIGHLIGHT_BETWEEN);/* Draw line to represent drop target */ m_LeftTree.SetCharSearchMode(SFTTREE_CHARSEARCH_ALLCHARS, -1);/* Consider all characters typed */ /* Change the default colors */ { SFTTREE_COLORS Colors;
See Also C/C++ API | Categories | Notifications