Add an AbortDlg Dialog Box

You need a new dialog box to support printing. The AbortDlg dialog box permits the user to cancel a printing operation by choosing the Cancel button. Add the following DIALOG statement to the resource 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