A dialog box can also accommodate the additional controls explained in Frame Controls. You can include the FCF_DBE_APPSTAT flag in a dialog template as follows.
DLGTEMPLATE ID_MYDIALOG PRELOAD MOVEABLE DISCARDABLE BEGIN DIALOG "Sample dialog box", ID_MYDIALOG, 91, 90, 111, 59, WS_VISIBLE | WS_SAVEBITS, FCF_DLGBORDER | FCF_NOBYTEALIGN | FCF_TITLEBAR | FCF_DBE_APPSTAT BEGIN CONTROL "Where do you live?", ID_NULL, 9, 43, 91, 10, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_VISIBLE CONTROL "", ID_ENTRYFIELD, 10, 27, 87, 8, WC_ENTRYFIELD, ES_LEFT | ES_AUTOSCROLL | ES_MARGIN | WS_TABSTOP | WS_VISIBLE CONTROL "Enter", 1, 6, 4, 40, 12, WC_BUTTON, BS_PUSHBUTTON | BS_DEFAULT | WS_GROUP | WS_TABSTOP | WS_VISIBLE CONTROL "Cancel", 2, 60, 4, 40, 12, WC_BUTTON, BS_PUSHBUTTON | WS_VISIBLE END END
If a dialog box contains some entry fields, you should supply the additional controls to it as described in the following sections.