home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 3_2004-2005.ISO / Data / Zips / AllAPI_API179141992004.psc / API / A / AdjustWindowRectEx.api < prev    next >
Encoding:
INI File  |  2004-08-30  |  1.4 KB  |  33 lines

  1. [NAME]
  2. AdjustWindowRectEx
  3. [DESCRIPTION]
  4. The AdjustWindowRectEx function calculates the required size of the window rectangle, based on the desired size of the client rectangle. The window rectangle can then be passed to the CreateWindowEx function to create a window whose client area is the desired size.
  5. [DECLARATION]
  6. Declare Function AdjustWindowRectEx Lib "user32" Alias "AdjustWindowRectEx" (lpRect As RECT, ByVal dsStyle As Long, ByVal bMenu As Long, ByVal dwEsStyle As Long) As Long
  7. [VBNET]
  8. N/A
  9. [OS]
  10. Requires Windows NT 3.1 or later; Requires Windows 95 or later
  11. [LIBRARY]
  12. User32
  13. [PARAMETERS]
  14. ╖ lpRect
  15. Pointer to a RECT structure that contains the coordinates of the top-left and bottom-right corners of the desired client area. When the function returns, the structure contains the coordinates of the top-left and bottom-right corners of the window to accommodate the desired client area.
  16.  
  17. ╖ dwStyle
  18. Specifies the window styles of the window whose required size is to be calculated.
  19.  
  20. ╖ bMenu
  21. Specifies whether the window has a menu.
  22.  
  23. ╖ dwExStyle
  24. Specifies the extended style of the window whose required size is to be calculated.
  25. [RETURNS]
  26. If the function succeeds, the return value is nonzero.
  27.  
  28. If the function fails, the return value is zero. To get extended error information, call GetLastError.
  29. [EXAMPLES]
  30. AdjustWindowRectEx*6849A9DF9623C8140C8116D91CE97403.html
  31. [RELATED]
  32. AdjustWindowRect
  33.