-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPRINT.C
70 lines (56 loc) · 1.91 KB
/
PRINT.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
**************************************************************************
print.c Brett A. Morrison
This file contains the routines for printing the data.
**************************************************************************
*/
#include "golf.h"
extern char szAppName[]; /* located in golf.c */
/*
--------------------------------------------------------------------------
PrintDlgProc
This function prints a dialog box informing the user that the print job
has started.
Inputs:
hDlg - Handle to the parent window
message - Message from MainWndProc
wParam - Additional message information
lParam - Additional message information
Outputs:
TRUE if successful, else FALSE
--------------------------------------------------------------------------
*/
BOOL FAR PASCAL PrintDlgProc(HWND hDlg, WORD message, WORD wParam, LONG lParam)
{ /* PrintDlgProc */
return FALSE;
} /* PrintDlgProc */
/*
--------------------------------------------------------------------------
AbortProc
This procedure sends an abort message to the printing queue.
Inputs:
hPrinterDC - Handle to the printer
nCode - Code determining if job can be aborted
Outputs:
TRUE if job can be aborted, else FALSE
--------------------------------------------------------------------------
*/
BOOL FAR PASCAL AbortProc(HDC hPrinterDC, short nCode)
{ /* AbortProc */
return FALSE;
} /* AbortProc */
/*
--------------------------------------------------------------------------
PrintFile
This procedure prints the current file.
Inputs:
hInstance - Instance of the parent window
hwnd - Handle to the parent window
*szFileName - The filename to be printed
--------------------------------------------------------------------------
*/
BOOL PrintFile(HANDLE hInstance, HWND hwnd, char *szFileName)
{ /* PrintFile */
MessageBox(hwnd, "Printing to come soon!", szAppName, MB_OK | MB_ICONEXCLAMATION);
return FALSE;
} /* PrintFile */