RDW.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. namespace Microsoft.Win32
  2. {
  3. //RDW定义
  4. public static partial class NativeMethods
  5. {
  6. /// <summary>
  7. /// 禁用(屏蔽)重画区域
  8. /// </summary>
  9. public const int RDW_INVALIDATE = 0x0001;
  10. /// <summary>
  11. /// 即使窗口并非无效,也向其投递一条WM_PAINT消息
  12. /// </summary>
  13. public const int RDW_INTERNALPAINT = 0x0002;
  14. /// <summary>
  15. /// 重画前,先清除重画区域的背景。也必须指定RDW_INVALIDATE
  16. /// </summary>
  17. public const int RDW_ERASE = 0x0004;
  18. /// <summary>
  19. /// 检验重画区域
  20. /// </summary>
  21. public const int RDW_VALIDATE = 0x0008;
  22. /// <summary>
  23. /// 禁止内部生成或由这个函数生成的任何待决WM_PAINT消息。针对无效区域,仍会生成WM_PAINT消息
  24. /// </summary>
  25. public const int RDW_NOINTERNALPAINT = 0x0010;
  26. /// <summary>
  27. /// 禁止删除重画区域的背景
  28. /// </summary>
  29. public const int RDW_NOERASE = 0x0020;
  30. /// <summary>
  31. /// 重画操作排除子窗口(前提是它们存在于重画区域)
  32. /// </summary>
  33. public const int RDW_NOCHILDREN = 0x0040;
  34. /// <summary>
  35. /// 重画操作包括子窗口(前提是它们存在于重画区域)
  36. /// </summary>
  37. public const int RDW_ALLCHILDREN = 0x0080;
  38. /// <summary>
  39. /// 立即更新指定的重画区域
  40. /// </summary>
  41. public const int RDW_UPDATENOW = 0x0100;
  42. /// <summary>
  43. /// 立即删除指定的重画区域
  44. /// </summary>
  45. public const int RDW_ERASENOW = 0x0200;
  46. /// <summary>
  47. /// 如非客户区包含在重画区域中,则对非客户区进行更新。也必须指定RDW_INVALIDATE
  48. /// </summary>
  49. public const int RDW_FRAME = 0x0400;
  50. /// <summary>
  51. /// 禁止非客户区域重画(如果它是重画区域的一部分)。也必须指定RDW_VALIDATE
  52. /// </summary>
  53. public const int RDW_NOFRAME = 0x0800;
  54. }
  55. }