DCX.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. namespace Microsoft.Win32
  2. {
  3. //DCX定义
  4. public static partial class NativeMethods
  5. {
  6. /// <summary>
  7. /// Returns a DC that corresponds to the window rectangle rather than the client rectangle.
  8. /// </summary>
  9. public const int DCX_WINDOW = 0x00000001;
  10. /// <summary>
  11. /// Returns a DC from the cache, rather than the OWNDC or CLASSDC window. Essentially overrides CS_OWNDC and CS_CLASSDC.
  12. /// </summary>
  13. public const int DCX_CACHE = 0x00000002;
  14. /// <summary>
  15. /// Does not reset the attributes of this DC to the default attributes when this DC is released.
  16. /// </summary>
  17. public const int DCX_NORESETATTRS = 0x00000004;
  18. /// <summary>
  19. /// Excludes the visible regions of all child windows below the window identified by hWnd.
  20. /// </summary>
  21. public const int DCX_CLIPCHILDREN = 0x00000008;
  22. /// <summary>
  23. /// Excludes the visible regions of all sibling windows above the window identified by hWnd.
  24. /// </summary>
  25. public const int DCX_CLIPSIBLINGS = 0x00000010;
  26. /// <summary>
  27. /// 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.
  28. /// </summary>
  29. public const int DCX_PARENTCLIP = 0x00000020;
  30. /// <summary>
  31. /// The clipping region identified by hrgnClip is excluded from the visible region of the returned DC.
  32. /// </summary>
  33. public const int DCX_EXCLUDERGN = 0x00000040;
  34. /// <summary>
  35. /// The clipping region identified by hrgnClip is intersected with the visible region of the returned DC.
  36. /// </summary>
  37. public const int DCX_INTERSECTRGN = 0x00000080;
  38. /// <summary>
  39. /// DCX_EXCLUDEUPDATE
  40. /// </summary>
  41. public const int DCX_EXCLUDEUPDATE = 0x00000100;
  42. /// <summary>
  43. /// Reserved; do not use.
  44. /// </summary>
  45. public const int DCX_INTERSECTUPDATE = 0x00000200;
  46. /// <summary>
  47. /// Allows drawing even if there is a LockWindowUpdate call in effect that would otherwise exclude this window. Used for drawing during tracking.
  48. /// </summary>
  49. public const int DCX_LOCKWINDOWUPDATE = 0x00000400;
  50. /// <summary>
  51. /// Reserved; do not use.
  52. /// </summary>
  53. public const int DCX_VALIDATE = 0x00200000;
  54. }
  55. }