Click to See Complete Forum and Search --> : Maximize Form
How can I maximize a window using APIs? I was able to find the handle of the window, but I couldn't figure out what to do about the PostMessage API call. Thanks!
terebi
Jun 28th, 2000, 09:03 PM
Here you go...
Use the API ShowWindow cmd, to maximize or minimize a form
'Your API:
Public Declare Function ShowWindow Lib "user32" Alias "ShowWindow" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
'Your Constants:
Public Const SW_MAXIMIZE = 3
Public Const SW_MINIMIZE = 6
'here is the possible proc
public max_me()
showwindow(formhwn&,SW_MAXIMIZE)
end sub
Maybe that will help you...
Hopefully that is of help :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.