Click here to Skip to main content
15,895,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: dear brother, can you help me? Pin
Code-o-mat17-Nov-09 21:51
Code-o-mat17-Nov-09 21:51 
GeneralRe: dear brother, can you help me? Pin
nenfa17-Nov-09 23:54
nenfa17-Nov-09 23:54 
GeneralRe: dear brother, can you help me? Pin
Code-o-mat18-Nov-09 0:07
Code-o-mat18-Nov-09 0:07 
GeneralRe: dear brother, can you help me? Pin
nenfa18-Nov-09 3:26
nenfa18-Nov-09 3:26 
QuestionFont Pin
john563217-Nov-09 20:50
john563217-Nov-09 20:50 
AnswerRe: Font Pin
Nuri Ismail17-Nov-09 21:35
Nuri Ismail17-Nov-09 21:35 
GeneralRe: Font Pin
john563217-Nov-09 21:47
john563217-Nov-09 21:47 
GeneralRe: Font [modified] Pin
Nuri Ismail17-Nov-09 22:39
Nuri Ismail17-Nov-09 22:39 
MPTP wrote:
But MSDN says "It is not recommended that you use DEFAULT_GUI_FONT or SYSTEM_FONT to obtain the font used by dialogs and windows".


Yes, that is why i said "You can use...". In your initial post have asked about default windows font, but in fact system uses several fonts: menu font, message box font, icon label font, caption font, status bar font...


MPTP wrote:
Then what to use?


For best precision you should use the SystemParametersInfo()[^] function with the SPI_GETNONCLIENTMETRICS parameter to retrieve the current font information.
This method will fill a NONCLIENTMETRICS[^] structure and you can check the:

LOGFONT lfCaptionFont;
LOGFONT lfSmCaptionFont;
LOGFONT lfMenuFont;
LOGFONT lfStatusFont;
LOGFONT lfMessageFont;


fields of this structure. I hope this helps! Smile | :)

Regards,
Nuri Ismail

modified on Wednesday, November 18, 2009 4:47 AM

AnswerRe: Font Pin
Code-o-mat17-Nov-09 21:38
Code-o-mat17-Nov-09 21:38 
AnswerRe: Font Pin
Randor 17-Nov-09 22:55
professional Randor 17-Nov-09 22:55 
QuestionVS6 to VS2008 Pin
john563217-Nov-09 20:31
john563217-Nov-09 20:31 
AnswerRe: VS6 to VS2008 Pin
Rajesh R Subramanian17-Nov-09 20:34
professionalRajesh R Subramanian17-Nov-09 20:34 
GeneralRe: VS6 to VS2008 Pin
john563217-Nov-09 20:37
john563217-Nov-09 20:37 
GeneralRe: VS6 to VS2008 Pin
Richard MacCutchan17-Nov-09 21:46
mveRichard MacCutchan17-Nov-09 21:46 
GeneralRe: VS6 to VS2008 Pin
mav@octaval17-Nov-09 21:47
mav@octaval17-Nov-09 21:47 
GeneralRe: VS6 to VS2008 Pin
john563218-Nov-09 1:55
john563218-Nov-09 1:55 
GeneralRe: VS6 to VS2008 Pin
mav@octaval18-Nov-09 2:02
mav@octaval18-Nov-09 2:02 
GeneralRe: VS6 to VS2008 Pin
KarstenK17-Nov-09 22:11
mveKarstenK17-Nov-09 22:11 
QuestionID card Creater/Generator. Pin
Le@rner17-Nov-09 20:21
Le@rner17-Nov-09 20:21 
AnswerRe: ID card Creater/Generator. Pin
Rajesh R Subramanian17-Nov-09 20:35
professionalRajesh R Subramanian17-Nov-09 20:35 
GeneralRe: ID card Creater/Generator. Pin
Le@rner17-Nov-09 20:37
Le@rner17-Nov-09 20:37 
GeneralRe: ID card Creater/Generator. Pin
Rajesh R Subramanian17-Nov-09 20:53
professionalRajesh R Subramanian17-Nov-09 20:53 
GeneralRe: ID card Creater/Generator. Pin
Le@rner17-Nov-09 20:58
Le@rner17-Nov-09 20:58 
GeneralRe: ID card Creater/Generator. Pin
Richard MacCutchan17-Nov-09 22:44
mveRichard MacCutchan17-Nov-09 22:44 
QuestionHow to mark an ActiveX object as Safe??? Pin
Arun Abraham Jose17-Nov-09 18:57
Arun Abraham Jose17-Nov-09 18:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.