|
-
Jun 26th, 2000, 10:52 PM
#1
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!
-
Jun 28th, 2000, 09:03 PM
#2
New Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|