To support printing, most applications use a new dialog box, AbortDlg. With this dialog box, the user can cancel a print operation by clicking the Cancel button. To create this dialog box, add the following DIALOG statement to the resource-definition file:
AbortDlg DIALOG 20, 20, 90, 64
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "PrntFile"
BEGIN
DefPushButton "Cancel", IDCANCEL, 29, 44, 32, 14, WS_GROUP
Ctext "Sending", -1, 0, 8, 90, 8
Ctext "text", IDC_FILENAME, 0, 18, 90, 8
Ctext "to print spooler.", -1, 0, 28, 90, 8
END