Defines the font used for row header text display.
C
HFONT WINAPI SftBox_GetRowHeaderFont(HWND hwndCtl); void WINAPI SftBox_SetRowHeaderFont(HWND hwndCtl, HFONT hFont, BOOL fRedraw);
C++
HFONT CSftBox::GetRowHeaderFont() const; void CSftBox::SetRowHeaderFont(HFONT hFont, BOOL fRedraw);
hwndCtl
The window handle of the combo box control.
hFont
The font handle describing the new font to be used to draw the row header text.
fRedraw
Set to TRUE to cause the combo box 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 font is used for the row headers of the static portion and the dropdown portion.
The default font is the DEFAULT_GUI_FONT stock font (GetStockObject(DEFAULT_GUI_FONT)).
The application retains ownership of the font and cannot delete the font until the combo box no longer uses the font (usually until the combo box 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.
Row headers are made visible using SetShowRowHeader.
See Also C/C++ API | Categories | Notifications