How to restore ...?

How to restore an application when I Have got the Handle?
el_shiroAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DragonSlayerCommented:
ShowWindow(TheHandle, SW_RESTORE);
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MadshiCommented:
What handle do you have? The process handle? Then you're out of luck. If you have the handle of the main window, you can use DragonSlayer's solution.

Regards, Madshi.
0
DragonSlayerCommented:
(Madshi, I wonder why there is a sudden *BOOM* in questions regarding handles... )
0
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

MadshiCommented:
:-)  Don't know... It's just not too easy with all those different kind of handles...
0
YevgenCommented:
Madshi, do you know how to move a window(button for Ex.) from one process to another...?
0
el_shiroAuthor Commented:
the handle which I meant is windows handle, I have used this :
 ShowWindow(Handle,SW_MAXIMIZE) or
 ShowWindow(Handle,SW_MINIMIZE)
 then
 ShowWindow(Handle,SW_SHOW)
 then
 ShowWindow(Handle,SW_NORMAL)
but It make un-comfort on eyes :(
 
So ... , anyone know how to use the "ShowWindow" Windows API function or other function?


Thanks to All

Shiro
0
MadshiCommented:
Look at DragonSlayer's comment, you have to use SW_RESTORE, that should work fine.

Yevgen, you can't. You would have to recreate the window in the context of the other application. That's *quite* difficult...

Regards, Madshi.
0
el_shiroAuthor Commented:
Thanks to DragonSlayer and others :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.