CMFCMenuBar::SetMenuFont

Sets the font for all menu bars in your application.

static BOOL SetMenuFont(
   LPLOGFONT lpLogFont,
   BOOL bHorz = TRUE
);

Parameters

  • [in] lpLogFont
    A pointer to a LOGFONT structure that defines the font to set.

  • [in] bHorz
    TRUE if you want the lpLogFont parameter to be used for the vertical font, FALSE if you want it to be used for horizontal font.

Return Value

TRUE if the method was successful; otherwise FALSE.

Remarks

Two fonts are used for all CMFCMenuBar objects. These separate fonts are used for horizontal and vertical menu bars.

The font settings are global variables and affect all CMFCMenuBar objects.

Requirements

Header: afxmenubar.h

See Also

Reference

CMFCMenuBar Class

Hierarchy Chart

CMFCMenuBar::GetMenuFont