home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
msdn_vcb
/
samples
/
vc98
/
sdk
/
graphics
/
gdi
/
printer
/
common.h
next >
Wrap
Text File
|
1997-10-05
|
3KB
|
73 lines
/******************************************************************************\
* This is a part of the Microsoft Source Code Samples.
* Copyright (C) 1993-1997 Microsoft Corporation.
* All rights reserved.
* This source code is only intended as a supplement to
* Microsoft Development Tools and/or WinHelp documentation.
* See these sources for detailed information regarding the
* Microsoft samples programs.
\******************************************************************************/
/******************************************************************************\
*
* COMMON.H
*
\******************************************************************************/
/******************************************************************************\
* SYMBOLIC CONSTANTS
\******************************************************************************/
#define ARC 0x00000001
#define ELLIPSE 0x00000002
#define LINETO 0x00000004
#define PIE 0x00000008
#define PLG_BLT 0x00000010
#define POLYBEZIER 0x00000020
#define POLYGON 0x00000040
#define POLYLINE 0x00000080
#define POLYPOLYGON 0x00000100
#define RECTANGLE 0x00000200
#define ROUNDRECT 0x00000400
#define STRETCH_BLT 0x00000800
#define ALLGRAPHICS 0x00000fff
#define ENUMFONTS 0x40000000
#define DRAWAXIS 0x80000000
#define MAX_GRAPHICS 12
#define BUFSIZE 256
#define DID_OK 501
#define DID_LISTBOX 502
#define DID_CANCEL 503
#define DID_EDITTEXT 504
/******************************************************************************\
* FUNCTION PROTOTYPES
\******************************************************************************/
#define ErrMsgBox(txt,title) MessageBox (ghwndMain, (LPCTSTR) txt, \
(LPCTSTR) title, \
MB_OK | MB_ICONEXCLAMATION);
/******************************************************************************\
* FUNCTION PROTOTYPES
\******************************************************************************/
BOOL Paint (HDC, LPRECT);
LRESULT CALLBACK DevCapsXDlgProc (HWND, UINT, WPARAM, LPARAM);
LRESULT CALLBACK EnumPrintersDlgProc (HWND, UINT, WPARAM, LPARAM);
LRESULT CALLBACK GetDeviceCapsDlgProc (HWND, UINT, WPARAM, LPARAM);
LRESULT CALLBACK GetPrinterDriverDlgProc (HWND, UINT, WPARAM, LPARAM);
LRESULT CALLBACK EnumPrinterDriversDlgProc (HWND, UINT, WPARAM, LPARAM);