🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Mouse in screen coordinates? One more thing...

#17578
From: AdrianH
Date: Sat, 22 Mar 2003 12:16
30 lines
1859 bytes
One more thing: how do I find if a key or a mouse button was pressed while
my app has no focus and|or the mouse is not over my app's window - this is
for picking the colors ( I will have a 'history' of picked colors).

Thank you in advance
Adrian


Remy Lebeau (TeamB) <gambit47@yahoo.com> wrote in message
news:3e7bbf92@newsgroups.borland.com...
>
> "AdrianH" <adrianha@yahooo.com> wrote in message
> news:3e7b8189@newsgroups.borland.com...
>
> > How do I find where the mouse is in screen coordinates
>
> GetCursorPos()
>
> > I need a color picker and I don't know how to pick
> > colors outside my app's window.
>
> Once you know the exact pixel location that you want, then simply use
> GetDC(0) to first get the HDC for the entire screen and then use
GetPixel()
> to retreive the color at that pixel location.
>
>
> Gambit
>
>
Technical Details
Message-ID: <3e7c5520@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e7b8189@newsgroups.borland.com> <3e7bbf92@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,9200f64693f5a55b,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-23 21:45:32 PST
From: "AdrianH" <adrianha@yahooo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e7b8189@newsgroups.borland.com> <3e7bbf92@newsgroups.borland.com>
Subject: Re: Mouse in screen coordinates? One more thing...
Date: Sat, 22 Mar 2003 14:16:55 +0200
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
NNTP-Posting-Host: 213.233.107.165
Message-ID: <3e7c5520@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048335648 213.233.107.165 (22 Mar 2003 04:20:48 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail