Article View: borland.public.cppbuilder.nativeapi
Article #2678Re: Dual monitors. Minimize all window from one of them
From: Remy Lebeau (TeamB)
Date: Thu, 01 Feb 2007 01:08
Date: Thu, 01 Feb 2007 01:08
16 lines
1570 bytes
1570 bytes
"Star" <noemai@noemail.com> wrote in message news:45c11e55$1@newsgroups.borland.com... > I have tried using Enumwindows, but I get a huge list of > windows and not the ones that are in the taskbar. You are not taking into account that EnumWindows() returns all available top-level windows, including hidden windows, regardless of monitor. If you only want windows that appear in the TaskBar, then use GetWindowLong() to filter out the HWNDs that do not have the WS_EX_APPWINDOW style. To filter out HWNDs by specific monitor, use MonitorFromWindow() as well. Gambit
Technical Details
Message-ID:
<45c13d7e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!208.48.142.85!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<45c11e55$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3994b9dccccaa5ca 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: <45c11e55$1@newsgroups.borland.com> Subject: Re: Dual monitors. Minimize all window from one of them Date: Wed, 31 Jan 2007 17:08:40 -0800 Lines: 18 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: 75.83.34.171 Message-ID: <45c13d7e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1170292094 75.83.34.171 (31 Jan 2007 17:08:14 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!208.48.142.85!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail