12.6.1 Defining a Dialog Box That Cancels a Print Operation

In your application's resource-definition file, provide a dialog box template for the dialog box that the user can use to cancel the print operation. Add the following statements:

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