If you are creating a dialog window, you can specify presentation parameters inside the dialog template. For any window in a dialog template (including the dialog window itself) you may add one or more PRESPARAMS statements to the template following the definition of the control.
Note: For the dialog window, place the PRESPARAMS statement immediately after the DIALOG statement in the template.
DLGTEMPLATE DLG_MYDIALOG BEGIN DIALOG "Add Expression", DLG_MYDIALOG, 30, 25, 205, 55, WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR /* Set font to be used in dialog */ PRESPARAMS PP_FONTNAMESIZE, "10.Helv" BEGIN LTEXT "Enter new expression:", -1, 5, 40, 195, 8 /* Set above static control to yellow text on red background */ PRESPARAMS PP_BACKGROUNDCOLOR, RGB_RED PRESPARAMS PP_FOREGROUNDCOLORINDEX, CLR_YELLOW ENTRYFIELD "", -1, 7, 27, 191, 8, ES_MARGIN PUSHBUTTON "OK", DID_OK, 5, 5, 45, 14 END END