Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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