Solved

Restore application in windows 7

Posted on 2012-04-10
2
978 Views
Last Modified: 2012-08-14
Hi, thanks for read. I'm using delphi XE and windows 7.
the problem is: i minimize my app and later i need restore my app to front again. i already tryed several tricks but nothing work.
can someone help me? thanks
0
Comment
Question by:adminmember
2 Comments
 
LVL 22

Accepted Solution

by:
Ferruccio Accalai earned 500 total points
ID: 37828103
use GetLastActivePopup to get the right window handle
from msdn: GetLastActivePopup determines which pop-up window owned by the specified window was most recently active.
so

var
MyHandle: THandle;
begin
MyHandle := GetLastActivePopup(Application.Handle);
  BringWindowToTop(MyHandle);
  if IsIconic(MyHandle) then
    ShowWindow(MyHandle, SW_RESTORE)
  else
    SetForegroundWindow(MyHandle);
end;
0
 

Author Closing Comment

by:adminmember
ID: 37828323
thank you :)
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Specific format 21 196
how to send memory stream from ics Client To ics server ? 11 105
Message not shown 5 49
how to change, disabled button color FMX ? 1 32
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The viewer will learn how to implement Singleton Design Pattern in Java.

786 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