I have the following code in .rc file
This code successfully sets the font of text inside the dialog(CDialog) to specifed face type but the font of text of buttons does not change.Anything missing to do that?Code:FONT 12, "MS Shell Dlg"
Printable View
I have the following code in .rc file
This code successfully sets the font of text inside the dialog(CDialog) to specifed face type but the font of text of buttons does not change.Anything missing to do that?Code:FONT 12, "MS Shell Dlg"
How are these buttons created? In the resources or dynamically?
And you don't additionally set/change buttons' font in the code. Do you?
No
I tried drilling down it and found that as soon as i declare button as CMFCBUTTON in .h file and compile code than font is not reflected. On other side if i dont declare it as CMFCBUTTON ,font gets reflected properly
Have a look at MSDN: you seem to need calling EnableMenuFont method (only a guess. cause I never used the CMFCButton class!)
That doesn't worked
It does not work