Article View: borland.public.cppbuilder.nativeapi
Article #3247Re: Is checking a window's dwStyle-value ' WS_VISIBLE' not sufficent to find out, if a window is currently visible on the screen...
From: Remy Lebeau (TeamB)
Date: Mon, 07 Aug 2006 18:18
Date: Mon, 07 Aug 2006 18:18
31 lines
2047 bytes
2047 bytes
<MR> wrote in message news:fqndd2p35upa7ajicoe59mnos65v8erlqu@4ax.com...
> My even worse, but functioning solution was to exclude this 'Myapp'
> -window explicitely with
> char title[100];
> GetWindowText(hwnd, title, sizeof(title));
> if(strcmp(title, "Myapp")==0)
> goto overlap_check_passed;
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.
> Where does this Myapp-window comes from. It is none of the forms
> I created with BDS2006 (VCL)?
See my other reply.
> 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.
Gambit
Technical Details
Message-ID:
<44d78454$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.albasani.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<b91bd2dnjukqfkdkpgtnths0nbltohne89@4ax.com> <2rqbd296n1l0j9o06hftg57cc5ss1dfcki@4ax.com> <omubd2lb4r1nitgalofa70s43i75iubd3v@4ax.com> <fqndd2p35upa7ajicoe59mnos65v8erlqu@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> 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:18:37 -0700 Lines: 33 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: <44d78454$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1154974804 68.69.17.41 (7 Aug 2006 11:20:04 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.albasani.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail