GW.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435
  1. namespace Microsoft.Win32
  2. {
  3. //GW定义
  4. public static partial class NativeMethods
  5. {
  6. /// <summary>
  7. /// The retrieved handle identifies the window of the same type that is highest in the Z order.If the specified window is a topmost window, the handle identifies a topmost window. If the specified window is a top-level window, the handle identifies a top-level window. If the specified window is a child window, the handle identifies a sibling window.
  8. /// </summary>
  9. public const uint GW_HWNDFIRST = 0;
  10. /// <summary>
  11. /// The retrieved handle identifies the window of the same type that is lowest in the Z order.If the specified window is a topmost window, the handle identifies a topmost window. If the specified window is a top-level window, the handle identifies a top-level window. If the specified window is a child window, the handle identifies a sibling window.
  12. /// </summary>
  13. public const uint GW_HWNDLAST = 1;
  14. /// <summary>
  15. /// The retrieved handle identifies the window below the specified window in the Z order.If the specified window is a topmost window, the handle identifies a topmost window. If the specified window is a top-level window, the handle identifies a top-level window. If the specified window is a child window, the handle identifies a sibling window.
  16. /// </summary>
  17. public const uint GW_HWNDNEXT = 2;
  18. /// <summary>
  19. /// The retrieved handle identifies the window above the specified window in the Z order.If the specified window is a topmost window, the handle identifies a topmost window. If the specified window is a top-level window, the handle identifies a top-level window. If the specified window is a child window, the handle identifies a sibling window.
  20. /// </summary>
  21. public const uint GW_HWNDPREV = 3;
  22. /// <summary>
  23. /// The retrieved handle identifies the specified window's owner window, if any. For more information, see Owned Windows.
  24. /// </summary>
  25. public const uint GW_OWNER = 4;
  26. /// <summary>
  27. /// The retrieved handle identifies the child window at the top of the Z order, if the specified window is a parent window; otherwise, the retrieved handle is NULL. The function examines only child windows of the specified window. It does not examine descendant windows.
  28. /// </summary>
  29. public const uint GW_CHILD = 5;
  30. /// <summary>
  31. /// The retrieved handle identifies the enabled popup window owned by the specified window (the search uses the first such window found using GW_HWNDNEXT); otherwise, if there are no enabled popup windows, the retrieved handle is that of the specified window.
  32. /// </summary>
  33. public const uint GW_ENABLEDPOPUP = 6;
  34. }
  35. }