⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gdi.odl

📁 The code for this article was written for version 1.0 of the Active Template Library (ATL). The cu
💻 ODL
📖 第 1 页 / 共 5 页
字号:
    [ helpstring("GetDeviceCaps: TEXTCAPS flag") ]
    const UINT TC_SO_ABLE       = 0x1000;
    [ helpstring("GetDeviceCaps: TEXTCAPS flag") ]
    const UINT TC_RA_ABLE       = 0x2000;
    [ helpstring("GetDeviceCaps: TEXTCAPS flag") ]
    const UINT TC_VA_ABLE       = 0x4000;

    // CLIPCAPS
    [ helpstring("GetDeviceCaps: CLIPCAPS flag") ]
    const UINT CP_NONE          = 0x0000;
    [ helpstring("GetDeviceCaps: CLIPCAPS flag") ]
    const UINT CP_RECTANGLE     = 0x0001;
    [ helpstring("GetDeviceCaps: CLIPCAPS flag") ]
    const UINT CP_REGION        = 0x0002;

    // RASTERCAPS
    [ helpstring("GetDeviceCaps: RASTERCAPS flag") ]
    const UINT RC_BITBLT        = 0x0001;
    [ helpstring("GetDeviceCaps: RASTERCAPS flag") ]
    const UINT RC_BANDING       = 0x0002;
    [ helpstring("GetDeviceCaps: RASTERCAPS flag") ]
    const UINT RC_SCALING       = 0x0004;
    [ helpstring("GetDeviceCaps: RASTERCAPS flag") ]
    const UINT RC_BITMAP64      = 0x0008;
    [ helpstring("GetDeviceCaps: RASTERCAPS flag") ]
    const UINT RC_GDI20_OUTPUT  = 0x0010;
    [ helpstring("GetDeviceCaps: RASTERCAPS flag") ]
    const UINT RC_GDI20_STATE   = 0x0020;
    [ helpstring("GetDeviceCaps: RASTERCAPS flag") ]
    const UINT RC_SAVEBITMAP    = 0x0040;
    [ helpstring("GetDeviceCaps: RASTERCAPS flag") ]
    const UINT RC_DI_BITMAP     = 0x0080;
    [ helpstring("GetDeviceCaps: RASTERCAPS flag") ]
    const UINT RC_PALETTE       = 0x0100;
    [ helpstring("GetDeviceCaps: RASTERCAPS flag") ]
    const UINT RC_DIBTODEV      = 0x0200;
    [ helpstring("GetDeviceCaps: RASTERCAPS flag") ]
    const UINT RC_BIGFONT       = 0x0400;
    [ helpstring("GetDeviceCaps: RASTERCAPS flag") ]
    const UINT RC_STRETCHBLT    = 0x0800;
    [ helpstring("GetDeviceCaps: RASTERCAPS flag") ]
    const UINT RC_FLOODFILL     = 0x1000;
    [ helpstring("GetDeviceCaps: RASTERCAPS flag") ]
    const UINT RC_STRETCHDIB    = 0x2000;
    [ helpstring("GetDeviceCaps: RASTERCAPS flag") ]
    const UINT RC_OP_DX_OUTPUT  = 0x4000;
    [ helpstring("GetDeviceCaps: RASTERCAPS flag") ]
    const UINT RC_DEVBITS       = H8000; // Hack to get 0x8000

    [ helpstring("GetDeviceCaps: Other capability flags - C1_TRANSPARENT") ]
    const int CAPS1         = 94;
    [ helpstring("GetDeviceCaps: CAPS1 transparency flag") ]
    const UINT C1_TRANSPARENT   = 0x0001;   // new raster cap

    // const int QUERYROPSUPPORT    = 40    // use to determine ROP support

    // Background Modes
    [ helpstring("Get/SetBkMode: Transparent background") ]
    const int TRANSPARENT    = 1;
    [ helpstring("Get/SetBkMode: Opaque background") ]
    const int OPAQUE         = 2;
    [ helpstring("Get/SetBkMode: Transparent background for blits (requires C1_TRANSPARENT device capability)") ]
    const int NEWTRANSPARENT = 3;

    [ helpstring("SetArcDirection: Draw arc or rectangle counterclockwise") ]
    const UINT AD_COUNTERCLOCKWISE = 1;
    [ helpstring("SetArcDirection: Draw arc or rectangle clockwise") ]
    const UINT AD_CLOCKWISE        = 2;

    //const UINT DCB_RESET      = 0x0001;
    //const UINT DCB_ACCUMULATE = 0x0002;
    //const UINT DCB_DIRTY      = 0x0002;
    //const UINT DCB_SET        = 0x0003;
    //const UINT DCB_ENABLE = 0x0004;
    //const UINT DCB_DISABLE    = 0x0008;

    // Map modes
    //const int MM_TEXT         = 1;
    //const int MM_LOMETRIC     = 2;
    //const int MM_HIMETRIC     = 3;
    //const int MM_LOENGLISH        = 4;
    //const int MM_HIENGLISH        = 5;
    //const int MM_TWIPS            = 6;
    //const int MM_ISOTROPIC        = 7;
    //const int MM_ANISOTROPIC  = 8;

    // Coordinate Modes
    const int ABSOLUTE                    = 1;
    const int RELATIVE                    = 2;

    // Pen Styles
    const int PS_SOLID          = 0;
    const int PS_DASH           = 1;
    const int PS_DOT            = 2;
    const int PS_DASHDOT        = 3;
    const int PS_DASHDOTDOT     = 4;
    const int PS_NULL           = 5;
    const int PS_INSIDEFRAME    = 6;

    // Palette entry flags
    //const int PC_RESERVED = 0x01; // palette index used for animation
    //const int PC_EXPLICIT = 0x02; // palette index is explicit to device
    //const int PC_NOCOLLAPSE   = 0x04; // do not match color to system palette

    // Get/SetSystemPaletteUse() values
    //const int SYSPAL_STATIC   = 1;
    //const int SYSPAL_NOSTATIC = 2;

    // Brush Styles
    const int BS_SOLID          = 0;
    const int BS_NULL           = 1;
    const int BS_HOLLOW         = 1;
    const int BS_HATCHED        = 2;
    const int BS_PATTERN        = 3;
    const int BS_INDEXED        = 4;
    const int BS_DIBPATTERN     = 5;

    // Hatch Styles
    const int HS_HORIZONTAL     = 0;
    const int HS_VERTICAL       = 1;
    const int HS_FDIAGONAL      = 2;
    const int HS_BDIAGONAL      = 3;
    const int HS_CROSS          = 4;
    const int HS_DIAGCROSS      = 5;

    // Stock brushes for use with GetStockObject()
    const int WHITE_BRUSH       = 0;
    const int LTGRAY_BRUSH      = 1;
    const int GRAY_BRUSH        = 2;
    const int DKGRAY_BRUSH      = 3;
    const int BLACK_BRUSH       = 4;
    const int NULL_BRUSH        = 5;
    const int HOLLOW_BRUSH      = 5;

    // Stock pens for use with GetStockObject();
    const int WHITE_PEN         = 6;
    const int BLACK_PEN         = 7;
    const int NULL_PEN          = 8;

    // Region type flags
    //const int ERROR               = 0;
    //const int NULLREGION      = 1;
    //const int SIMPLEREGION        = 2;
    //const int COMPLEXREGION       = 3;

    // CombineRgn() command values
    //const int RGN_AND         = 1;
    //const int RGN_OR          = 2;
    //const int RGN_XOR         = 3;
    //const int RGN_DIFF            = 4;
    //const int RGN_COPY            = 5;

    // Object types for EnumObjects()
    const int OBJ_PEN       = 1;
    const int OBJ_BRUSH     = 2;

    // DrawText() Format Flags
    const UINT DT_TOP       = 0x0000;
    const UINT DT_LEFT      = 0x0000;
    const UINT DT_CENTER        = 0x0001;
    const UINT DT_RIGHT     = 0x0002;
    const UINT DT_VCENTER   = 0x0004;
    const UINT DT_BOTTOM        = 0x0008;
    const UINT DT_WORDBREAK = 0x0010;
    const UINT DT_SINGLELINE    = 0x0020;
    const UINT DT_EXPANDTABS    = 0x0040;
    const UINT DT_TABSTOP   = 0x0080;
    const UINT DT_NOCLIP        = 0x0100;
    const UINT DT_EXTERNALLEADING  = 0x0200;
    const UINT DT_CALCRECT  = 0x0400;
    const UINT DT_NOPREFIX  = 0x0800;
    const UINT DT_INTERNAL  = 0x1000;

    // Text Alignment Options
    const UINT TA_NOUPDATECP = 0x0000;
    const UINT TA_UPDATECP  = 0x0001;
    const UINT TA_LEFT      = 0x0000;
    const UINT TA_RIGHT     = 0x0002;
    const UINT TA_CENTER    = 0x0006;
    const UINT TA_TOP       = 0x0000;
    const UINT TA_BOTTOM    = 0x0008;
    const UINT TA_BASELINE  = 0x0018;

    // constants for the biCompression field
    const long BI_RGB   = 0;
    const long BI_RLE8  = 1;
    const long BI_RLE4  = 2;

    // DIB color table identifiers
    const int DIB_RGB_COLORS  = 0;
    const int DIB_PAL_COLORS  = 1;

    // constants for CreateDIBitmap
    //const DWORD CBM_INIT       = 0x00000004;

    // Binary raster ops
    const int R2_BLACK           = 1;
    const int R2_NOTMERGEPEN     = 2;
    const int R2_MASKNOTPEN      = 3;
    const int R2_NOTCOPYPEN      = 4;
    const int R2_MASKPENNOT      = 5;
    const int R2_NOT             = 6;
    const int R2_XORPEN          = 7;
    const int R2_NOTMASKPEN      = 8;
    const int R2_MASKPEN         = 9;
    const int R2_NOTXORPEN       = 10;
    const int R2_NOP             = 11;
    const int R2_MERGENOTPEN     = 12;
    const int R2_COPYPEN         = 13;
    const int R2_MERGEPENNOT     = 14;
    const int R2_MERGEPEN        = 15;
    const int R2_WHITE           = 16;

    // PolyFill Modes
    const int ALTERNATE  = 1;
    const int WINDING    = 2;

    const UINT ETO_GRAYED   = 0x0001;
    const UINT ETO_OPAQUE   = 0x0002;
    const UINT ETO_CLIPPED  = 0x0004;

    /*
    // Metafile Functions
    const UINT META_SETBKCOLOR            = 0x0201;
    const UINT META_SETBKMODE             = 0x0102;
    const UINT META_SETMAPMODE            = 0x0103;
    const UINT META_SETROP2               = 0x0104;
    const UINT META_SETRELABS             = 0x0105;
    const UINT META_SETPOLYFILLMODE       = 0x0106;
    const UINT META_SETSTRETCHBLTMODE     = 0x0107;
    const UINT META_SETTEXTCHAREXTRA      = 0x0108;
    const UINT META_SETTEXTCOLOR          = 0x0209;
    const UINT META_SETTEXTJUSTIFICATION  = 0x020A;
    const UINT META_SETWINDOWORG          = 0x020B;
    const UINT META_SETWINDOWEXT          = 0x020C;
    const UINT META_SETVIEWPORTORG        = 0x020D;
    const UINT META_SETVIEWPORTEXT        = 0x020E;
    const UINT META_OFFSETWINDOWORG       = 0x020F;
    const UINT META_SCALEWINDOWEXT        = 0x0410;
    const UINT META_OFFSETVIEWPORTORG     = 0x0211;
    const UINT META_SCALEVIEWPORTEXT      = 0x0412;
    const UINT META_LINETO                = 0x0213;
    const UINT META_MOVETO                = 0x0214;
    const UINT META_EXCLUDECLIPRECT       = 0x0415;
    const UINT META_INTERSECTCLIPRECT     = 0x0416;
    const UINT META_ARC                   = 0x0817;
    const UINT META_ELLIPSE               = 0x0418;
    const UINT META_FLOODFILL             = 0x0419;
    const UINT META_PIE                   = 0x081A;
    const UINT META_RECTANGLE             = 0x041B;
    const UINT META_ROUNDRECT             = 0x061C;
    const UINT META_PATBLT                = 0x061D;
    const UINT META_SAVEDC                = 0x001E;
    const UINT META_SETPIXEL              = 0x041F;
    const UINT META_OFFSETCLIPRGN         = 0x0220;
    const UINT META_TEXTOUT               = 0x0521;
    const UINT META_BITBLT                = 0x0922;
    const UINT META_STRETCHBLT            = 0x0B23;
    const UINT META_POLYGON               = 0x0324;
    const UINT META_POLYLINE              = 0x0325;
    const UINT META_ESCAPE                = 0x0626;
    const UINT META_RESTOREDC             = 0x0127;
    const UINT META_FILLREGION            = 0x0228;
    const UINT META_FRAMEREGION           = 0x0429;
    const UINT META_INVERTREGION          = 0x012A;
    const UINT META_PAINTREGION           = 0x012B;
    const UINT META_SELECTCLIPREGION      = 0x012C;
    const UINT META_SELECTOBJECT          = 0x012D;
    const UINT META_SETTEXTALIGN          = 0x012E;
    const UINT META_DRAWTEXT              = 0x062F;

    const UINT    META_CHORD              = 0x0830;
    const UINT    META_SETMAPPERFLAGS     = 0x0231;
    const UINT    META_EXTTEXTOUT         = 0x0a32;
    const UINT    META_SETDIBTODEV        = 0x0d33;
    const UINT    META_SELECTPALETTE      = 0x0234;
    const UINT    META_REALIZEPALETTE     = 0x0035;
    const UINT    META_ANIMATEPALETTE     = 0x0436;
    const UINT    META_SETPALENTRIES      = 0x0037;
    const UINT    META_POLYPOLYGON        = 0x0538;
    const UINT    META_RESIZEPALETTE      = 0x0139;

    const UINT    META_DIBBITBLT          = 0x0940;
    const UINT    META_DIBSTRETCHBLT      = 0x0b41;
    const UINT    META_DIBCREATEPATTERNBRUSH   = 0x0142;
    const UINT    META_STRETCHDIB         = 0x0f43;

    const UINT META_EXTFLOODFILL          = 0x0548;

    const UINT META_RESETDC               = 0x014C;
    const UINT META_STARTDOC              = 0x014D;
    const UINT META_STARTPAGE             = 0x004F;
    const UINT META_ENDPAGE               = 0x0050;
    const UINT META_ABORTDOC              = 0x0052;
    const UINT META_ENDDOC                = 0x005E;

    const UINT    META_DELETEOBJECT       = 0x01f0;

    const UINT    META_CREATEPALETTE      = 0x00f7;
    const UINT META_CREATEBRUSH           = 0x00F8;
    const UINT META_CREATEPATTERNBRUSH    = 0x01F9;
    const UINT META_CREATEPENINDIRECT     = 0x02FA;
    const UINT META_CREATEFONTINDIRECT    = 0x02FB;
    const UINT META_CREATEBRUSHINDIRECT   = 0x02FC;
    const UINT META_CREATEBITMAPINDIRECT  = 0x02FD;
    const UINT META_CREATEBITMAP          = 0x06FE;
    const UINT META_CREATEREGION          = 0x06FF;
    */

    /*
    // Spooler Error Codes
    const UINT SP_NOTREPORTED       = 0x4000;
    const int SP_ERROR              = -1;
    const int SP_APPABORT           = -2;
    const int SP_USERABORT          = -3;
    const int SP_OUTOFDISK          = -4;
    const int SP_OUTOFMEMORY        = -5;

    const int PR_JOBSTATUS          = 0x0000;

    // GDI Escapes
    const int NEWFRAME              = 1;
    const int ABORTDOC              = 2;
    const int NEXTBAND              = 3;
    const int SETCOLORTABLE         = 4;
    const int GETCOLORTABLE         = 5;
    const int FLUSHOUTPUT           = 6;
    const int DRAFTMODE             = 7;
    const int QUERYESCSUPPORT       = 8;
    const int SETABORTPROC          = 9;
    const int STARTDOC              = 10;
    const int ENDDOC                = 11;
    const int GETPHYSPAGESIZE       = 12;
    const int GETPRINTINGOFFSET     = 13;
    const int GETSCALINGFACTOR      = 14;
    const int MFCOMMENT             = 15;
    const int GETPENWIDTH           = 16;
    const int SETCOPYCOUNT          = 17;
    const int SELECTPAPERSOURCE     = 18;
    const int DEVICEDATA            = 19;
    const int PASSTHROUGH           = 19;
    const int GETTECHNOLGY          = 20;
    const int GETTECHNOLOGY         = 20;
    const int SETLINECAP            = 21;
    const int SETLINEJOIN           = 22;
    const int SETMITERLIMIT         = 23;
    const int BANDINFO              = 24;
    const int DRAWPATTERNRECT       = 25;
    const int GETVECTORPENSIZE      = 26;
    const int GETVECTORBRUSHSIZE    = 27;
    const int ENABLEDUPLEX          = 28;
    const int GETSETPAPERBINS       = 29;
    const int GETSETPRINTORIENT     = 30;
    const int ENUMPAPERBINS         = 31;
    const int SETDIBSCALING         = 32;
    const int EPSPRINTING           = 33;
    const int ENUMPAPERMETRICS      = 34;
    const int GETSETPAPERMETRICS    = 35;
    const int POSTSCRIPT_DATA       = 37;
    const int POSTSCRIPT_IGNORE     = 38;
    const int MOUSETRAILS           = 39;

    const int GETEXTENDEDTEXTMETRICS = 256;
    const int GETEXTENTTABLE        = 257;
    const int GETPAIRKERNTABLE      = 258;
    const int GETTRACKKERNTABLE     = 259;
    const int EXTTEXTOUT            = 512;
    const int GETFACENAME           = 513;
    const int ENABLERELATIVEWIDTHS  = 768;
    const int ENABLEPAIRKERNING     = 769;
    const int SETKERNTRACK          = 770;
    c

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -