File:  [WindowsNT SDKs] / q_a / samples / printer / paint.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:29:19 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-jun-1992, HEAD
Microsoft Windows NT Build 297 06-28-1992

/************************************************************************\
*
*                             PAINT.H
*
\************************************************************************/


/************************************************************************\
*                         SYMBOLIC CONSTANTS
\************************************************************************/

#define ARC             0x00000001
#define ELLIPSE         0x00000002
#define LINETO          0x00000004
#define PIE             0x00000008
#define POLYBEZIER      0x00000010
#define POLYGON         0x00000020
#define POLYLINE        0x00000040
#define POLYPOLYGON     0x00000080
#define RECTANGLE       0x00000100
#define ROUNDRECT       0x00000200
#define STRETCH_BLT     0x00000400
#define TEXTOUT         0x00000800

#define ENUMFONTS       0x80000000

#define BORDER                   5

#define MAX_GRAPHICS		 12
#define MAX_MAP_MODE_LPTSTRS	 8

#define NUM_GRAPHICS_XSLOTS      4
#define NUM_GRAPHICS_YSLOTS	 3

#define TOOLBARHEIGHT	         34



/************************************************************************\
*                              TYPEDEFS
\************************************************************************/

typedef struct {

  int left;
  int top;
  int right;
  int bottom;

} RECTI, *PRECTI;

typedef struct tagArFonts{

  int        nFonts;
  int        cySpace;
  HDC        hdc;
  LOGFONT    *lf;
  TEXTMETRIC *tm;
  int        *Type;

} ARFONTS, *PARFONTS;



/************************************************************************\
*                           GLOBAL VARIABLES
\************************************************************************/

HDC      hdcGlobal;          /* globals utilized by enum fonts funtions */
PARFONTS parFontsGlobal;
int      iFace,jFont;
int      nFaces;

int      iDeltaX, iDeltaY, column; /* vars used by Get*GraphicSlot calls*/



/************************************************************************\
*                         FUNCTION PROTOTYPES
\************************************************************************/

BOOL Paint (HDC, LPRECT);

void GetFirstGraphicSlot (PRECTI);
void GetNextGraphicSlot  (PRECTI);

void         DrawFonts     (HDC, LPRECT);
PARFONTS     BuildFontList (HDC);
void         FreeFontList  (PARFONTS);

int APIENTRY MyEnumCount (LPLOGFONT, LPTEXTMETRIC, DWORD, LPVOID);
int APIENTRY MyEnumCopy  (LPLOGFONT, LPTEXTMETRIC, DWORD, LPVOID);
int APIENTRY MyEnumFaces (LPLOGFONT, LPTEXTMETRIC, DWORD, LPVOID);

unix.superglobalmegacorp.com

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