Article View: borland.public.cppbuilder.nativeapi
Article #3250Re: Is checking a window's dwStyle-value ' WS_VISIBLE' not sufficent to find out, if a window is currently visible on the screen...
From: MR
Date: Mon, 07 Aug 2006 21:03
Date: Mon, 07 Aug 2006 21:03
28 lines
1931 bytes
1931 bytes
Thanks, Remy, for your answers. >You should use GetClassName() instead, ie: > > char name[100]; > GetClassName(hwnd, name, sizeof(name)); > if( strcmp(name, "TApplication") ==0 ) > >This way, you can skip past the hidden window of other VCL programs that may >be overlapping your own. I tried this and - with the first tests - it seems to work fine... >> Why does the IsWindowVisible()-function delivers true > >Because the window really is visible, it is just too small for you to see >with your eye. Oops, you are absolutely right!!! That's the point! I really should have seen that the extention of the window is 0, so it would not disturb in any way and so I could just skip it... (and it's quite irrelevant to check the dwStyle, etc. Thanks a lot, Michael
Technical Details
Message-ID:
<jc9fd21ttq4q30r7eqsi026pgr7nb82ibh@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<b91bd2dnjukqfkdkpgtnths0nbltohne89@4ax.com> <2rqbd296n1l0j9o06hftg57cc5ss1dfcki@4ax.com> <omubd2lb4r1nitgalofa70s43i75iubd3v@4ax.com> <fqndd2p35upa7ajicoe59mnos65v8erlqu@4ax.com> <44d78454$1@newsgroups.borland.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: <MR> Newsgroups: borland.public.cppbuilder.nativeapi 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, 07 Aug 2006 23:03:36 +0200 Message-ID: <jc9fd21ttq4q30r7eqsi026pgr7nb82ibh@4ax.com> References: <b91bd2dnjukqfkdkpgtnths0nbltohne89@4ax.com> <2rqbd296n1l0j9o06hftg57cc5ss1dfcki@4ax.com> <omubd2lb4r1nitgalofa70s43i75iubd3v@4ax.com> <fqndd2p35upa7ajicoe59mnos65v8erlqu@4ax.com> <44d78454$1@newsgroups.borland.com> X-Newsreader: Forte Free Agent 3.3/32.846 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 84.57.2.175 X-Trace: newsgroups.borland.com 1154984588 84.57.2.175 (7 Aug 2006 14:03:08 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail