Hi,
I am currently writing resource editer for my ide.
I want to change change the font style,color ect... of
'buttons' at run time. How can it be done ? Is it possible ?
Regards,
Pradeepan.
Posted on 2002-05-28 10:07:20 by Pradeepan
Pradeepan,

To do what uyou are after depends a bit on what way you display the font, for the normal true type fonts, you normally use CreateFont which gets you the handle of the font which you then display with API calls like DrawText or alternatively, with a control you use the Sendmessage / WM_SETFONT combination.

What is important with font creation is to understand how the font is allocated and be sure to properly deallocate the font resource after its used otherwise you will get a resource leak..

Regards,

hutch@movsd.com
Posted on 2002-05-28 10:45:45 by hutch--
Hi Hutch,
Now I got it, thanks :alright:
Regards,
Pradeepan
Posted on 2002-05-28 12:34:15 by Pradeepan