🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Is checking a window's dwStyle-value ' WS_VISIBLE' not sufficent to find out, if a window is currently visible on the screen...

#3248
From: Remy Lebeau (TeamB)
Date: Mon, 07 Aug 2006 18:29
32 lines
2299 bytes
<MR> wrote in message news:5m4ed2tqvtmb1eh9nk6n4s4i4rfju6cjb7@4ax.com...

> My app is called MyApp and it just runs through all the windows and
> if it gets to the application window 'Myapp' (with exactly this name)

Then you are running up on the TApplication window for your project.

> it checks for this window to be visible or not. Strangely windows says
> it is visible, even if it is hidden (as you said) . So the assertion
fails.

Again, the TApplication window is actually visible.  That is why Windows
reports it has visible.  It is just really small, but still present
nentheless.

> How can I find out for any HWND-window value, if this window is
> really visible (i.e. not hidden) or not. The example shows that checking
for
> IsWindowVisible() is obviously not sufficent.

You already know the answer to that.

> If it would concern only the main-window of my current application
> the hack (with the 'bad' goto) would be sufficent, but there might run
> other applications with such a hidden window.

All the more reason to look at the window class names instead of the caption
titles when possible.


Gambit
Technical Details
Message-ID: <44d786dd@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <b91bd2dnjukqfkdkpgtnths0nbltohne89@4ax.com> <2rqbd296n1l0j9o06hftg57cc5ss1dfcki@4ax.com> <omubd2lb4r1nitgalofa70s43i75iubd3v@4ax.com> <fqndd2p35upa7ajicoe59mnos65v8erlqu@4ax.com> <44d70a0d$1@newsgroups.borland.com> <5m4ed2tqvtmb1eh9nk6n4s4i4rfju6cjb7@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a9182ef18c390728
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: <b91bd2dnjukqfkdkpgtnths0nbltohne89@4ax.com> <2rqbd296n1l0j9o06hftg57cc5ss1dfcki@4ax.com> <omubd2lb4r1nitgalofa70s43i75iubd3v@4ax.com> <fqndd2p35upa7ajicoe59mnos65v8erlqu@4ax.com> <44d70a0d$1@newsgroups.borland.com> <5m4ed2tqvtmb1eh9nk6n4s4i4rfju6cjb7@4ax.com>
Subject: Re: Is checking a window's dwStyle-value ' WS_VISIBLE' not sufficent to find out, if a window is currently visible on the screen?
Date: Mon, 7 Aug 2006 11:29:23 -0700
Lines: 34
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: <44d786dd@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1154975453 68.69.17.41 (7 Aug 2006 11:30:53 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail