Defines the font of the title of a calendar.
C
HFONT WINAPI SftDate_GetTitleFont(HWND hwndCtl); void WINAPI SftDate_SetTitleFont(HWND hwndCtl, HFONT hFont);
C++
HFONT CSftDate::GetTitleFont() const; HFONT CSftCalendar::GetTitleFont() const; void CSftDate::SetTitleFont(HFONT hFont); void CSftCalendar::SetTitleFont(HFONT hFont);
hwndCtl
The window handle of the month calendar control (SftCalendar), or of the date field control (SftDate) whose dropdown calendar is affected.
hFont
The font, or NULL to use the bold calendar font.
GetTitleFont returns the font defined using SetTitleFont, or NULL.
The GetTitleFont and SetTitleFont functions define and retrieve the font of the title shown above each month (or year, decade or century). By default (NULL) the bold version of the calendar font (SetCalendarFont) is used.
The application retains ownership of the font, which must remain valid as long as the control uses it.
The setting applies to a month calendar control and to the dropdown calendar of a date field control.
See Also C/C++ API | Categories | Notifications