Page 1 of 1

Posted: Mon Mar 03, 2003 9:50 am
by BackupUser
Restored from previous forum. Originally posted by Julien Morel.

Hello

How hide an external program, for example Internet explorer ?



:) Thank you :)

Posted: Mon Mar 03, 2003 3:57 pm
by BackupUser
Restored from previous forum. Originally posted by ricardo.

ShowWindow_(HandleOfTheWindow,#SW_HIDE)

You can use with this command:

#SW_MAXIMIZE
#SW_MINIMIZE
#SW_SHOWNORMAL

And many more, check the win32 API reference guide.

Best Regards

Ricardo

Dont cry for me Argentina...

Posted: Mon Mar 03, 2003 4:12 pm
by BackupUser
Restored from previous forum. Originally posted by Julien Morel.

Doesn't the code go, :cry:
What the API ones for that?

Posted: Mon Mar 03, 2003 4:22 pm
by BackupUser
Restored from previous forum. Originally posted by ricardo.
Originally posted by Julien Morel

Doesn't the code go, :cry:
What the API ones for that?
Are you sure that you are getting the right handle of the window that you want to hide?


Best Regards

Ricardo

Dont cry for me Argentina...

Posted: Mon Mar 03, 2003 5:01 pm
by BackupUser
Restored from previous forum. Originally posted by Julien Morel.

I do not know, know how one is done?

Posted: Mon Mar 03, 2003 5:36 pm
by BackupUser
Restored from previous forum. Originally posted by ricardo.
Originally posted by Julien Morel

I do not know, know how one is done?
Every time that windows create a window (or even a gadget that are windows too) gives a handle to it. The handle is a number that its used to identify each window.
The handle is different every time, so if you search for the hanld eof the explorer per example today, next time you run your code you will need to search again because the hanlde will de different.

To search for the handle of certain window you can use:

Handle=FindWindow_(0, "Title of The Window")

If the result is 0 then you got the Handle and then you can try to hide, show, minimize, give top most, etc. those window.

Try to do a search for FindWindow_ in this forum and you can learn a lot from many excellent answer that was given to this or any other issue.

Hope this helps.

* The gadget are childwindow and need a different procedure to find the handle.

Best Regards

Ricardo

Dont cry for me Argentina...