I have loaded bitmap on the formview. I want the pixel color of bitmap where i left click the mouse button?
I wrote the following code in Lbuttondown() function but it is not working
CDC *pDC = GetDC();
ref = GetPixel(point.x, point.y);
let me know what is the problem and Answer