Solved

How to restore ...?

Posted on 2001-08-02
8
136 Views
Last Modified: 2010-04-06
How to restore an application when I Have got the Handle?
0
Comment
Question by:el_shiro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 14

Accepted Solution

by:
DragonSlayer earned 50 total points
ID: 6344090
ShowWindow(TheHandle, SW_RESTORE);
0
 
LVL 20

Expert Comment

by:Madshi
ID: 6344435
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
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 6344617
(Madshi, I wonder why there is a sudden *BOOM* in questions regarding handles... )
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 20

Expert Comment

by:Madshi
ID: 6344709
:-)  Don't know... It's just not too easy with all those different kind of handles...
0
 

Expert Comment

by:Yevgen
ID: 6346604
Madshi, do you know how to move a window(button for Ex.) from one process to another...?
0
 

Author Comment

by:el_shiro
ID: 6347565
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
 
LVL 20

Expert Comment

by:Madshi
ID: 6347635
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
 

Author Comment

by:el_shiro
ID: 6389084
Thanks to DragonSlayer and others :)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question