File:  [WindowsNT SDKs] / mstools / samples / printer / common.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:23:30 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-nov-1993, ntsdk-jul-1993, HEAD
Microsoft Windows NT Build 511 (SDK Final Release) 07-24-1993


/******************************************************************************\
*       This is a part of the Microsoft Source Code Samples. 
*       Copyright (C) 1993 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);

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.