How would I change the Default Font in my CRichEditCtrl to a Fixed Pitched Font ?
Printable View
How would I change the Default Font in my CRichEditCtrl to a Fixed Pitched Font ?
void CMyRichEditView::OnInitialUpdate()
{
CRichEditView::OnInitialUpdate();
// Set the printing margins (720 twips = 1/2 inch).
SetMargins(CRect(720, 720, 720, 720));
// Set your default font here
SendMessage(WM_SETFONT, (WPARAM)GetStockObject(SYSTEM_FIXED_FONT));
}