Article View: borland.public.cppbuilder.nativeapi
Article #5424Re: Detect double click on open desktop
From: Remy Lebeau (TeamB)
Date: Wed, 24 Aug 2005 17:13
Date: Wed, 24 Aug 2005 17:13
16 lines
1578 bytes
1578 bytes
<DeKayA@bellsouth.net> wrote in message news:430c6c1a.359747@forums.borland.com... > Is it possible to detect where on the open desktop a > user double clicks and if there is NO Icon under it? You need to use a global mouse hook via SetWindowsHookEx() in order to do that. Global hooks must be placed in a DLL. The hook can use WindowFromPoint() to detect when the mouse is not over any window other than the Desktop. Using the GetDestktopWindow() function to get the Desktop's window handle, you can then issue standard ListView messages to it in order to get the hit-test and icon information as needed. Gambit
Technical Details
Message-ID:
<430caadd$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<430c6c1a.359747@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ec88276a6c031b1d 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: <430c6c1a.359747@forums.borland.com> Subject: Re: Detect double click on open desktop Date: Wed, 24 Aug 2005 10:13:48 -0700 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: 68.69.17.41 Message-ID: <430caadd$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1124903645 68.69.17.41 (24 Aug 2005 10:14:05 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail