COMBOBOXINFO.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace Microsoft.Win32
  4. {
  5. /// <summary>
  6. /// COMBOBOXINFO定义
  7. /// </summary>
  8. public static partial class NativeMethods
  9. {
  10. /// <summary>
  11. /// COMBOBOXINFO Contains combo box status information.
  12. /// </summary>
  13. [StructLayout(LayoutKind.Sequential)]
  14. public struct COMBOBOXINFO
  15. {
  16. /// <summary>
  17. /// The size, in bytes, of the structure. The calling application must set this to sizeof(COMBOBOXINFO).
  18. /// </summary>
  19. public int cbSize;
  20. /// <summary>
  21. /// A RECT structure that specifies the coordinates of the edit box.
  22. /// </summary>
  23. public RECT rcItem;
  24. /// <summary>
  25. /// A RECT structure that specifies the coordinates of the button that contains the drop-down arrow.
  26. /// </summary>
  27. public RECT rcButton;
  28. /// <summary>
  29. /// <para>The combo box button state. This parameter can be one of the following values.</para>
  30. /// <para>Value Meaning</para>
  31. /// <para>0</para>
  32. /// <para>The button exists and is not pressed.</para>
  33. /// <para>STATE_SYSTEM_INVISIBLE</para>
  34. /// <para>There is no button.</para>
  35. /// <para>STATE_SYSTEM_PRESSED</para>
  36. /// <para>The button is pressed.</para>
  37. /// </summary>
  38. public int stateButton;
  39. /// <summary>
  40. /// A handle to the combo box.
  41. /// </summary>
  42. public IntPtr hwndCombo;
  43. /// <summary>
  44. /// A handle to the edit box.
  45. /// </summary>
  46. public IntPtr hwndItem;
  47. /// <summary>
  48. /// A handle to the drop-down list.
  49. /// </summary>
  50. public IntPtr hwndList;
  51. }
  52. }
  53. }