Using a Fixed-Pitch Font in a Dialog BoxLast reviewed: August 13, 1997Article ID: Q77991 |
|
The information in this article applies to:
To use a fixed-pitch font in a dialog box, during the processing of the dialog box initialization message, send the WM_SETFONT message to each control that will use the fixed font. The following code demonstrates this process:
case WM_INITDIALOG:
SendDlgItemMessage(hDlg, ID_CONTROL, WM_SETFONT,
GetStockObject(ANSI_FIXED_FONT), FALSE);
/*
* NOTE: This code will specify the fixed font only for the
* control ID_CONTROL. To specify the fixed font for other
* controls in the dialog box, additional calls to
* SendDlgItemMessage() are required.
*/
break;
|
Additional query words: 95
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |