?
Solved

How to restore ...?

Posted on 2001-08-02
8
Medium Priority
?
137 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 150 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month12 days, 22 hours left to enroll

777 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