|
-
April 26th, 1999, 02:11 PM
#1
Change Default Font in CRichEditCtrl
How would I change the Default Font in my CRichEditCtrl to a Fixed Pitched Font ?
-
April 30th, 1999, 05:43 AM
#2
Re: Change Default Font in CRichEditCtrl
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));
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|