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
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
SftTree/NET 2.0 - Tree Control
Defines the font used for this cell.
Get
Put
PutRef
object
A SftTreeCell object.
refFontObj
Defines the font used for this cell. For information about font properties, please visit the applicable section "Using SftTree/OCX with ...".
The Font property defines the font used for this cell.
The Font property overrides the control's Font property for the specified cell. If the Font property is not set for a particular cell, the control's Font property is used to draw the cell text instead. The cell's Font property can be set to the value Nothing, which restores the tree control's default font, defined using the control's Font property.
When using fixed height items (see Items.Style) and the Font property describes a font that is larger than the control's Font property, cell text will be clipped vertically. Items do not adjust their height to the Font property. Cell text is centered vertically and horizontally based on the Cell.TextVAlign and Cell.TextHAlign properties.
fd.sWeight = FW_NORMAL;
IFontDispPtr pFontDisp;
HRESULT hr = OleCreateFontIndirect(&fd, IID_IFontDisp, (void**)&pFontDisp);
if (FAILED(hr)) return;
long ItemIndex = m_vTree->Items->Add(FontName);
m_vTree->Item[ItemIndex]->Level = 1;
m_vTree->Cell[ItemIndex][1]->Text = FontName;
m_vTree->Cell[ItemIndex][0]->PutRefFont(pFontDisp);
}
/*static*/ int CALLBACK CListFontDlg::FontEnumeratorProc(ENUMLOGFONTEX *lpelfe, NEWTEXTMETRICEX *lpntme, DWORD FontType, LPARAM lParam)
{
CListFontDlg* PTHIS = (CListFontDlg*) lParam;
See Also SftTreeCell Object | Object Hierarchy
