NMHDR.cs 973 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace Microsoft.Win32
  4. {
  5. /// <summary>
  6. /// NMHDR定义
  7. /// </summary>
  8. public static partial class NativeMethods
  9. {
  10. /// <summary>
  11. /// NMHDR结构
  12. /// </summary>
  13. [StructLayout(LayoutKind.Sequential)]
  14. public struct NMHDR
  15. {
  16. /// <summary>
  17. /// A window handle to the control sending the message.
  18. /// </summary>
  19. public IntPtr hwndFrom;
  20. /// <summary>
  21. /// An identifier of the control sending the message.
  22. /// </summary>
  23. public IntPtr idFrom;
  24. /// <summary>
  25. /// A notification code. This member can be one of the common notification codes (see Notifications under General Control Reference), or it can be a control-specific notification code.
  26. /// </summary>
  27. public int code; // NM_ code
  28. }
  29. }
  30. }