GWL.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. namespace Microsoft.Win32
  2. {
  3. //GWL定义
  4. public static partial class NativeMethods
  5. {
  6. /// <summary>
  7. /// Retrieves the user data associated with the window. This data is intended for use by the application that created the window. Its value is initially zero.
  8. /// </summary>
  9. public const int GWL_USERDATA = -21;
  10. /// <summary>
  11. /// Retrieves the extended window styles.
  12. /// </summary>
  13. public const int GWL_EXSTYLE = -20;
  14. /// <summary>
  15. /// Retrieves the window styles.
  16. /// </summary>
  17. public const int GWL_STYLE = -16;
  18. /// <summary>
  19. /// Retrieves the identifier of the window.
  20. /// </summary>
  21. public const int GWL_ID = -12;
  22. /// <summary>
  23. /// Retrieves a handle to the parent window, if any.GetWindowLong return parent window handle,SetWindowLong set owner window handle.See also GetParent(if parent is NULL return owner window handle) Set Parent.Tim 2013.11.23
  24. /// </summary>
  25. public const int GWL_HWNDPARENT = -8;
  26. /// <summary>
  27. /// Retrieves a handle to the application instance.
  28. /// </summary>
  29. public const int GWL_HINSTANCE = -6;
  30. /// <summary>
  31. /// Retrieves the address of the window procedure, or a handle representing the address of the window procedure. You must use the CallWindowProc function to call the window procedure.
  32. /// </summary>
  33. public const int GWL_WNDPROC = -4;
  34. }
  35. }