>>>>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