🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: FindWindow and tray area

#5969
From: Vladimir Stefanovic
Date: Wed, 22 Jun 2005 19:53
32 lines
1875 bytes
As Remy said:

FindWindow() works fine with hidden windows, I have many such
programs...

Find your window by identifying the first parameter (class name), and
everything will work fine.

   HWND FindWindow(
      LPCTSTR lpClassName, // pointer to class name
       LPCTSTR lpWindowName  // pointer to window name
   );





-- 
Best regards,
Vladimir Stefanovic
<Francesco> wrote in message news:42b98dc6$1@newsgroups.borland.com...
> Hello,
>
> I need to get the handle to an application main window,
> i use FindWindow and works fine.
> The problem is that if the application is minimized on tray area
> FindWindow api is not able to find it.
> There is a way to get the handle to a minimized on tray area
> application?
> Is it possible to force restoring on a tray area minimized application?
>
> Thanks in advance, Francesco 
Technical Details
Message-ID: <42b9c1ae$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42b98dc6$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,31bd0c089f3d89f0
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42b98dc6$1@newsgroups.borland.com>
Subject: Re: FindWindow and tray area
Date: Wed, 22 Jun 2005 21:53:19 +0200
Lines: 34
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: 82.117.212.65
Message-ID: <42b9c1ae$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1119469998 82.117.212.65 (22 Jun 2005 12:53:18 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail