Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

FooterFont

Defines the font used for column footer text display.

C

HFONT WINAPI SftTree_GetFooterFont(HWND hwndCtl);
void WINAPI SftTree_SetFooterFont(HWND hwndCtl, HFONT hFont, BOOL fRedraw);
HFONT WINAPI SftTreeSplit_GetFooterFont(HWND hwndCtl);
void WINAPI SftTreeSplit_SetFooterFont(HWND hwndCtl, HFONT hFont, BOOL fRedraw);

C++

CFont* CSftTree::GetFooterFont() const;
void CSftTree::SetFooterFont(CFont* pFont, BOOL fRedraw = TRUE);
CFont* CSftTreeSplit::GetFooterFont() const;
void CSftTreeSplit::SetFooterFont(CFont* pFont, BOOL fRedraw = TRUE);

Parameters

hwndCtl

The window handle of the tree control.

hFont

The font handle describing the new font to be used to draw the column footer and row/column footer text.

pFont

A pointer to a CFont object describing the new font to be used to draw the column footer and row/column footer text.

fRedraw

Set to TRUE to cause the tree control to be repainted immediately, otherwise set to FALSE.

Returns

GetFooterFont returns the font used to draw the footer text.

Comments

The GetFooterFont and SetFooterFont functions define the font used for column footer text display.

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 SetFooterFont).

To change the font used for item text, use the WM_SETFONT message (CWnd::SetFont). The WM_SETFONT message overrides the font defined using SetFooterFont. If the footer font needs to be changed, it must be changed after using the WM_SETFONT message.

The CFont* pointer returned by GetFooterFont may point to a temporary object and should not be stored for later use.

See Also C/C++ API | Categories | Notifications