Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find RGB under the mouse pointer
Message
From
09/09/2008 02:05:40
 
 
To
08/09/2008 17:58:54
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows '98
Miscellaneous
Thread ID:
01118470
Message ID:
01345958
Views:
18
>>>>how to find RGB under the mouse pointer.
>>>>Rajesh
>>>
>>>http://www.foxite.com/downloads/default.aspx?id=179
>>>
>>>Cetin
>>
>>Cetin,
>>
>>Question: Shouldn't you call ReleaseDC() after GetWindowDC() ?
>>
>>http://msdn.microsoft.com/en-us/library/ms533251(VS.85).aspx
>
>Yes. I should as it seems. Not clear though what happens if you don't paint and don't release. I haven't experienced a side effect.
>Cetin

I don't know either, Cetin. Maybe a DC follows the rules of the 'handles'

Prior to posting, I tried ReleaseDC() and it returned 1. A second ReleaseDC() returned 0.
So I thought it was needed
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform