Originally posted by: PUH
A great codesample, thank you very much!
But I still have a problem to do the whole thing
with a CFormView... What can I do ?
Thanks,
PUH
Reply
Originally posted by: Cyril Boutamine
Ok it is a very good example. However, how to make when one has a tabctrl and associated controls?
Thanks,
Cyril Boutamine
Originally posted by: Richard Ullett
I can't believe how easy this was --- yet so hard
to find out about. Thank you very much.
Originally posted by: Vijil E C
I was pondering over this problem for quite some time now and the solution is just brilliant.
ReplyOriginally posted by: Argiris Kranidiotis
This example works fine with normal controls. But, just
add an ActiveX control to your dialog and this example produces an "Assertion error".
Any suggestions anyone ?
Originally posted by: Seungpil Lee
Thank for your useful article..
I need to change default font of modeless dialog..
How can I change?
Originally posted by: Thinh Truong
How can we change the caption's font?
Thanks,
T.T.
Originally posted by: Paul Leung
Very useful and well-written article - I find it very useful when working on my project!
Reply
Originally posted by: The Obliterator
/* Get User Appearance Settings */
Now remember to thank Microsoft for such an intuitive structure name like NONCLIENTMETRICS!!! :)
Anyhow hope it helps!
Useful article, anyhow you mention retrieving user font settings.
Well I had exactly the same problem trying to do that myself.
Eventually I found the following solution :-
NONCLIENTMETRICS systemMetrics;
systemMetrics.cbSize = sizeof(NONCLIENTMETRICS);
if(SystemParametersInfo(SPI_GETNONCLIENTMETRICS,
(WPARAM)&systemMetrics,
&systemMetrics.cbSize,
NULL))
{
// access the systemMetrics structure for desired info
}
else
{
// failed to accessing appearance settings
}
Originally posted by: Wayne
Is there a way to do what you did if you wanted to use a bold font? The only way I can think of is to get a pointer to each ctrl and change it that way. Any help would be appreciated.
Reply