🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2165

Re: Foreground another application

#2165
From: Andreas Osswald
Date: Wed, 18 Apr 2007 16:38
29 lines
1809 bytes
Is doesn't work!

the function IsIconic returns always zero whether the application is 
minimized or not.

After I use the ShowWindow function I can't re minimize the application.

regards
Andreas

"Bob Gonder" <notbg@notmindspring.invalid> schrieb im Newsbeitrag 
news:sm8c235a13e21geu4lp54r7rorcgee163e@4ax.com...
> Andreas Osswald wrote:
>
>>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);
>
> Try it this way:
>
>                  if( IsIconic( h ) )
>                  {       ShowWindow( h, SW_RESTORE );
>                  }else{
>                          SetForegroundWindow( h );
>                  };
>
> 
Technical Details
Message-ID: <4626496a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4625ec79$1@newsgroups.borland.com> <sm8c235a13e21geu4lp54r7rorcgee163e@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,25ea57fd64e945c2
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Andreas Osswald" <noname@noname.de>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4625ec79$1@newsgroups.borland.com> <sm8c235a13e21geu4lp54r7rorcgee163e@4ax.com>
Subject: Re: Foreground another application
Date: Wed, 18 Apr 2007 18:38:47 +0200
Lines: 31
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: <4626496a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1176914282 87.139.121.224 (18 Apr 2007 09:38:02 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail