Tags » SetFont

How to change the default font of a control

Each windows controls(Static Text, Edit, Button etc) have its own default fonts. Sometimes we may need to change this for a better visibility or some other usability requirements. 123 more words


Creating a dialog from it's template!

Here is a sample on how to do it…

CDialogTemplate dlgTemplate;
// Load dialog template into memory
// Change font of dialog
dlgTempl.SetFont( _T( "Courier" ), 10 ); 

// Creates and displays a modal dialog from a template in memory
CDialog dlg;
dlg.InitModalIndirect( dlgTemplate.m_hTemplate, 0 );
dlg.DoModal(); 53 more words
C++, VC++