Article View: borland.public.cppbuilder.nativeapi
Article #7789Re: ? determine of NO apps have focus
From: DeKayA
Date: Sun, 19 Dec 2004 22:48
Date: Sun, 19 Dec 2004 22:48
33 lines
2006 bytes
2006 bytes
On Fri, 17 Dec 2004 18:25:35 -0800, "Remy Lebeau \(TeamB\)"
<no.spam@no.spam.com> wrote:
So how do you properly get to the Desktop list
I tried this but it is incorrect
void __fastcall TForm1::Button1Click(TObject *Sender)
{
HWND DeskTop;
DeskTop = GetDesktopWindow();
int icons;
//Wrong! This was supposed to return the number of items in the list.
icons = ImageList_GetImageCount(HWND DeskTop);
}
//---------------------------------------------------------------------------
>
>"KR" <kr@nospamme.net> wrote in message
>news:pan.2004.12.18.02.19.57.858172@nospamme.net...
>
>> You can use GetDesktopWindow and intercept mouse messages.
>> But if you click on an icon I dont know if messages go to desktop
>> or to "icon object" of sorts.
>
>The Desktop is just a standard ListView set to icon mode. Clicks performed
>on the icons go to the ListView.
>
>
>Gambit
>
Technical Details
Message-ID:
<41c604ad.24741726@forums.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41c2c0cd.274654@forums.borland.com> <41c2dbe7$1@newsgroups.borland.com> <41c4ec5a.11423616@forums.borland.com> <pan.2004.12.18.02.19.57.858172@nospamme.net> <41c396e5@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b3ccc1579e3ccec7 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: DeKayA@bellsouth.net Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: ? determine of NO apps have focus Date: Sun, 19 Dec 2004 22:48:12 GMT Message-ID: <41c604ad.24741726@forums.borland.com> References: <41c2c0cd.274654@forums.borland.com> <41c2dbe7$1@newsgroups.borland.com> <41c4ec5a.11423616@forums.borland.com> <pan.2004.12.18.02.19.57.858172@nospamme.net> <41c396e5@newsgroups.borland.com> X-Newsreader: Forte Agent 1.5/32.452 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 65.8.48.185 X-Trace: newsgroups.borland.com 1103496485 65.8.48.185 (19 Dec 2004 14:48:05 -0800) Lines: 34 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail