Article View: borland.public.cppbuilder.nativeapi
Article #5967Re: FindWindow and tray area
From: Remy Lebeau (TeamB)
Date: Wed, 22 Jun 2005 19:42
Date: Wed, 22 Jun 2005 19:42
20 lines
1808 bytes
1808 bytes
<Francesco> wrote in message news:42b98dc6$1@newsgroups.borland.com... > The problem is that if the application is minimized on > tray area FindWindow api is not able to find it. There is no such thing as "minimize to tray". What actually happens is the window is simply made hidden instead, and then a tray icon is displayed. Those operations are completely separate from each other. FindWindow() works fine when locating hidden windows. What is likely happening is that when the window is being hidden, its caption text is being cleared or changed as well. Then the window text you are looking for would no longer match. Are you looking for the window text only, or are you looking for the window class name as well? Have you tried using Microaoft's Spy++ utility, or Borland's WinSight utility, or other similar tool, to see what actually happens to the window when it is "minimized"? Gambit
Technical Details
Message-ID:
<42b9bf26$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42b98dc6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,31bd0c089f3d89f0,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <42b98dc6$1@newsgroups.borland.com> Subject: Re: FindWindow and tray area Date: Wed, 22 Jun 2005 12:42:27 -0700 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <42b9bf26$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1119469350 68.69.17.41 (22 Jun 2005 12:42:30 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail