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 font used for row header text display.
C
HFONT WINAPI SftTree_GetRowHeaderFont(HWND hwndCtl); void WINAPI SftTree_SetRowHeaderFont(HWND hwndCtl, HFONT hfont, BOOL fRedraw); HFONT WINAPI SftTreeSplit_GetRowHeaderFont(HWND hwndCtl); void WINAPI SftTreeSplit_SetRowHeaderFont(HWND hwndCtl, HFONT hfont, BOOL fRedraw);
C++
CFont* CSftTree::GetRowHeaderFont() const; void CSftTree::SetRowHeaderFont(CFont* pFont, BOOL fRedraw = TRUE); CFont* CSftTreeSplit::GetRowHeaderFont() const; void CSftTreeSplit::SetRowHeaderFont(CFont* pFont, BOOL fRedraw = TRUE);
hwndCtl
The window handle of the tree control.
hfont
The font handle describing the new font to be used to draw the row header text.
pFont
A pointer to a CFont object describing the new font to be used to draw the row header text.
fRedraw
Set to TRUE to cause the tree control to be repainted immediately, otherwise set to FALSE.
GetRowHeaderFont returns the font used to draw the row header text.
The GetRowHeaderFont and SetRowHeaderFont functions define the font used for row header text display.
The default font used is the system font (GetStockObject(DEFAULT_GUI_FONT)).
The application retains ownership of the font and cannot delete the font until the tree control no longer uses the font (usually until the tree control is destroyed or the font is changed using SetRowHeaderFont).
To change the font used for item text, use the WM_SETFONT message (CWnd::SetFont). The WM_SETFONT message overrides the font defined using SetRowHeaderFont. If the row header font needs to be changed, it must be changed after using the WM_SETFONT message.
The CFont* pointer returned by GetRowHeaderFont may point to a temporary object and should not be stored for later use.
Row headers are made visible using SetShowRowHeader.
See Also C/C++ API | Categories | Notifications