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 / AdjustWindowRect.api < prev    next >
Encoding:
INI File  |  2004-08-30  |  1.3 KB  |  30 lines

  1. [NAME]
  2. AdjustWindowRect
  3. [DESCRIPTION]
  4. The AdjustWindowRect function calculates the required size of the window rectangle, based on the desired client-rectangle size. The window rectangle can then be passed to the CreateWindow function to create a window whose client area is the desired size.
  5. [DECLARATION]
  6. Declare Function AdjustWindowRect Lib "user32" Alias "AdjustWindowRect" (lpRect As RECT, ByVal dwStyle As Long, ByVal bMenu 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. [RETURNS]
  23. If the function succeeds, the return value is nonzero.
  24.  
  25. If the function fails, the return value is zero. To get extended error information, call GetLastError.
  26. [EXAMPLES]
  27. DeferWindowPos*16873D37FD06A83A57A07668367D1474.html
  28. [RELATED]
  29. AdjustWindowRectEx
  30.