TOOLINFO.cs 602 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace LYFZ.OtherExpansion.Win32.Struct
  4. {
  5. public struct TOOLINFO
  6. {
  7. public int cbSize;
  8. public int uFlags;
  9. public IntPtr hwnd;
  10. public IntPtr uId;
  11. public RECT rect;
  12. public IntPtr hinst;
  13. public IntPtr lpszText;
  14. public IntPtr lParam;
  15. public TOOLINFO(int flags)
  16. {
  17. this.cbSize = Marshal.SizeOf(typeof(TOOLINFO));
  18. this.uFlags = flags;
  19. this.hwnd = IntPtr.Zero;
  20. this.uId = IntPtr.Zero;
  21. this.rect = new RECT(0, 0, 0, 0);
  22. this.hinst = IntPtr.Zero;
  23. this.lpszText = IntPtr.Zero;
  24. this.lParam = IntPtr.Zero;
  25. }
  26. }
  27. }