Restore application in windows 7

Posted on 2012-04-10
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
Question by:adminmember
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
LVL 22

Accepted Solution

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.

MyHandle: THandle;
MyHandle := GetLastActivePopup(Application.Handle);
  if IsIconic(MyHandle) then
    ShowWindow(MyHandle, SW_RESTORE)

Author Closing Comment

ID: 37828323
thank you :)

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
splitOdd10 challenge 5 125
Problem to page 4 100
Wincontrol not (correctly) drawn 15 48
Delphi TListView and TEdit (Select item and input into TEdit) 10 50
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…
Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…

726 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