🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#3235
From: MR
Date: Mon, 07 Aug 2006 06:51
34 lines
2068 bytes
>This seems to work, but I'm not really happy about it as long as I do
>not understand why. So why do the functions above return values, that
>signalize the window is visible at it's GetRect()-area?

It was correct, that I was not happy about the ''solution' I used.
This test
  win_info.dwStyle&WS_VISIBLE)!<=0 && (win_info.dwStyle&WS_POPUP)==0
instead of 
  win_info.dwStyle&WS_VISIBLE)!<=0
excluded some other windows too from being checked and so some
overlappings weren't recognized.

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;

~~~~~~~~~~~~~~~~~~

There are two main-issues I do not understand:

(1) Where does this Myapp-window comes from. It is none of the forms I
created with BDS2006 (VCL)?

(2) Why does the IsWindowVisible()-function delivers true, but  is not
visible at it's GetWindowRect()-posiitions; it just appears in the
task-bar.

Thanks,

Michael
 
Technical Details
Message-ID: <fqndd2p35upa7ajicoe59mnos65v8erlqu@4ax.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <b91bd2dnjukqfkdkpgtnths0nbltohne89@4ax.com> <2rqbd296n1l0j9o06hftg57cc5ss1dfcki@4ax.com> <omubd2lb4r1nitgalofa70s43i75iubd3v@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: <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 08:51:48 +0200
Message-ID: <fqndd2p35upa7ajicoe59mnos65v8erlqu@4ax.com>
References: <b91bd2dnjukqfkdkpgtnths0nbltohne89@4ax.com> <2rqbd296n1l0j9o06hftg57cc5ss1dfcki@4ax.com> <omubd2lb4r1nitgalofa70s43i75iubd3v@4ax.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.25.146
X-Trace: newsgroups.borland.com 1154933481 84.57.25.146 (6 Aug 2006 23:51:21 -0700)
Lines: 34
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail