Solved

How to restore ...?

Posted on 2001-08-02
8
127 Views
Last Modified: 2010-04-06
How to restore an application when I Have got the Handle?
0
Comment
Question by:el_shiro
  • 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
 
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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 Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now