How to Change Font
-
My project is Dialog base and I want to change "Font" of all control on this dialog. What's the function can support this issue?
Max++ wrote:
My project is Dialog base and I want to change "Font" of all control on this dialog.
For dynamically changing... Try using WM_SETFONT with SendMessageToDescendants. A demo here... http://nibuthomas.wordpress.com/2007/12/06/changing-font-of-all-child-controls-at-one-go/[^] For a static changing once, change it from the resource editor, goto dialog properties, there you have a button for selecting font. Another option for doing this once... http://nibuthomas.wordpress.com/2007/06/28/create-a-dialog-from-its-template/[^]
Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com