Annotation of q_a/samples/printer/vars.c, revision 1.1

1.1     ! root        1: /******************************************************************************\
        !             2: *
        !             3: *  MODULE:      VARS.C
        !             4: *
        !             5: *  PURPOSE:     Contains global vars for PRINTER sample.
        !             6: *
        !             7: \******************************************************************************/
        !             8: 
        !             9: #include <windows.h>
        !            10: #include "lookup.h"
        !            11: #include "printer.h"
        !            12: #include "paint.h"
        !            13: 
        !            14: #define BUFSIZE  64
        !            15: 
        !            16: /*  This table associates graphics menu id's with corresponding flags.
        !            17:  *  The flags (eg. ARC, ELLIPSE) are #define'd in PAINT.C.
        !            18:  */
        !            19: LOOKUPENTRY dwGraphicsLkUpW[] = { { IDM_ARC,        ARC         },
        !            20:                                  { IDM_ELLIPSE,     ELLIPSE     },
        !            21:                                  { IDM_LINETO,      LINETO      },
        !            22:                                  { IDM_PIE,         PIE         },
        !            23:                                  { IDM_POLYBEZIER,  POLYBEZIER  },
        !            24:                                  { IDM_POLYGON,     POLYGON     },
        !            25:                                  { IDM_POLYLINE,    POLYLINE    },
        !            26:                                  { IDM_POLYPOLYGON, POLYPOLYGON },
        !            27:                                  { IDM_RECTANGLE,   RECTANGLE   },
        !            28:                                  { IDM_ROUNDRECT,   ROUNDRECT   },
        !            29:                                  { IDM_STRETCHBLT,  STRETCH_BLT },
        !            30:                                  { IDM_TEXTOUT,     TEXTOUT     } };
        !            31: 
        !            32: /*  This table associates map mode menu id's with corresponding map
        !            33:  *  modes. The map modes (eg. MM_ANISOTROPIC) are #define'd in WINGDI.H.
        !            34:  */
        !            35: LOOKUPENTRY iMapModesLkUpW[] = { { IDM_ANISOTROPIC, MM_ANISOTROPIC },
        !            36:                                  { IDM_HIENGLISH,   MM_HIENGLISH   },
        !            37:                                  { IDM_HIMETRIC,    MM_HIMETRIC    },
        !            38:                                  { IDM_ISOTROPIC,   MM_ISOTROPIC   },
        !            39:                                  { IDM_LOENGLISH,   MM_LOENGLISH   },
        !            40:                                  { IDM_LOMETRIC,    MM_LOMETRIC    },
        !            41:                                  { IDM_TEXT,        MM_TEXT        },
        !            42:                                  { IDM_TWIPS,       MM_TWIPS       } };
        !            43: 
        !            44: /*  DriverName, DeviceName, and Port are all strings representing the
        !            45:  *  user's current choice of printer (or, alternately, the display).
        !            46:  */
        !            47: char     DriverName[BUFSIZE] = "";
        !            48: char     DeviceName[BUFSIZE] = "";
        !            49: char     Port[BUFSIZE]       = "";
        !            50: 
        !            51: HANDLE   hInst;             /* program instance handle                  */
        !            52: DWORD    dwGraphicsOptions; /* flags interpreted in PAINT.C             */
        !            53: HWND    hWndMain;          /* main application window handle           */
        !            54: HWND    hWndToolbar;       /* toolbar window handle                    */
        !            55: int      iMapMode;          /* the current mapping mode for all devices */

unix.superglobalmegacorp.com

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