Article View: borland.public.cppbuilder.nativeapi
Article #2162Foreground another application
From: Andreas Osswald
Date: Wed, 18 Apr 2007 10:02
Date: Wed, 18 Apr 2007 10:02
17 lines
1475 bytes
1475 bytes
Hello,
I want to bring another app (ext_app) to foreground. I do it like this:
ExtHandle = FindWindow("CalssName","Caption");
PostMessage(ExtHandle,WM_SYSCOMMAND,SC_RESTORE,0);
SetForegroundWindow(ExtHandle);
The minimized ext_app comes to foreground, it works.
But if I want to minimize the ext_app (which was restore/comes to
foreground) it doesn't work. I can click to the minimize button but nothing
happens. I use the system menu but nothing happens too. After I restore the
ext_app by my application I can't minimize the ext_app anymore.
Regards
Andreas
Technical Details
Message-ID:
<4625ec79$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,25ea57fd64e945c2,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Andreas Osswald" <noname@noname.de> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Foreground another application Date: Wed, 18 Apr 2007 12:02:20 +0200 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 87.139.121.224 Message-ID: <4625ec79$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1176890489 87.139.121.224 (18 Apr 2007 03:01:29 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail