|
-
Jan 23rd, 2001, 11:37 AM
#1
Thread Starter
Hyperactive Member
If you have the handle of a parent window, can you
minimize, hide, and maxmize the application?
I tried using SendMessage to do it but it did not work.
Any suggestions anyone?
Bababooey
Tatatoothy
Mamamonkey
-
Jan 23rd, 2001, 11:51 AM
#2
Use the ShowWindow API function.
Code:
Private Const SW_HIDE = 0
Private Const SW_MAXIMIZE = 3
Private Const SW_MINIMIZE = 6
Private Const SW_RESTORE = 9
Private Const SW_SHOW = 5
Private Const SW_SHOWMAXIMIZED = 3
Private Const SW_SHOWMINIMIZED = 2
Private Const SW_SHOWMINNOACTIVE = 7
Private Const SW_SHOWNA = 8
Private Const SW_SHOWNOACTIVATE = 4
Private Const SW_SHOWNORMAL = 1
'Hide
ShowWindow hWnd, SW_HIDE
'Minimize
ShowWindow hWnd, SW_MINIMIZE
'Maximize
ShowWindow hWnd, SW_MAXIMIZE
-
Jan 24th, 2001, 07:32 AM
#3
Thread Starter
Hyperactive Member
Bababooey
Tatatoothy
Mamamonkey
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
|