namespace Microsoft.Win32 { //DCX定义 public static partial class NativeMethods { /// /// Returns a DC that corresponds to the window rectangle rather than the client rectangle. /// public const int DCX_WINDOW = 0x00000001; /// /// Returns a DC from the cache, rather than the OWNDC or CLASSDC window. Essentially overrides CS_OWNDC and CS_CLASSDC. /// public const int DCX_CACHE = 0x00000002; /// /// Does not reset the attributes of this DC to the default attributes when this DC is released. /// public const int DCX_NORESETATTRS = 0x00000004; /// /// Excludes the visible regions of all child windows below the window identified by hWnd. /// public const int DCX_CLIPCHILDREN = 0x00000008; /// /// Excludes the visible regions of all sibling windows above the window identified by hWnd. /// public const int DCX_CLIPSIBLINGS = 0x00000010; /// /// Uses the visible region of the parent window. The parent's WS_CLIPCHILDREN and CS_PARENTDC style bits are ignored. The origin is set to the upper-left corner of the window identified by hWnd. /// public const int DCX_PARENTCLIP = 0x00000020; /// /// The clipping region identified by hrgnClip is excluded from the visible region of the returned DC. /// public const int DCX_EXCLUDERGN = 0x00000040; /// /// The clipping region identified by hrgnClip is intersected with the visible region of the returned DC. /// public const int DCX_INTERSECTRGN = 0x00000080; /// /// DCX_EXCLUDEUPDATE /// public const int DCX_EXCLUDEUPDATE = 0x00000100; /// /// Reserved; do not use. /// public const int DCX_INTERSECTUPDATE = 0x00000200; /// /// Allows drawing even if there is a LockWindowUpdate call in effect that would otherwise exclude this window. Used for drawing during tracking. /// public const int DCX_LOCKWINDOWUPDATE = 0x00000400; /// /// Reserved; do not use. /// public const int DCX_VALIDATE = 0x00200000; } }