getting the font name
-
how do i get the font name used by the system ,or more precisely i need to fill the LOGFONT structure how do i do. thanx in advance Farpointer
-
how do i get the font name used by the system ,or more precisely i need to fill the LOGFONT structure how do i do. thanx in advance Farpointer
You can use the ::GetStockObject function. If using MFC, the code would be
LOGFONT logFont; CFont *pFont = CFont::FromHandle((HFONT)::GetStockObject(SYSTEM_FONT)); // to get default font used for menus and dialog box, use DEFAULT_GUI_FONT pFont->GetLogFont(&logFont);
HTH, K.
The great error of nearly all studies of war has been to consider war as an episode in foreign policies, when it is an act of interior politics - Simone Weil Fold with us! ¤ flickr
-
You can use the ::GetStockObject function. If using MFC, the code would be
LOGFONT logFont; CFont *pFont = CFont::FromHandle((HFONT)::GetStockObject(SYSTEM_FONT)); // to get default font used for menus and dialog box, use DEFAULT_GUI_FONT pFont->GetLogFont(&logFont);
HTH, K.
The great error of nearly all studies of war has been to consider war as an episode in foreign policies, when it is an act of interior politics - Simone Weil Fold with us! ¤ flickr
thanx man i will see to it farpointer