Get client area without borders
Posted on 2009-05-13
I am in need of getting an applications client-area without borders. Since the borders in different Windows versions change, borders are causing me problems.
I have a static pixel location, let's say 10,10. I want to be able to monitor this pixel's color. My problem is, with borders, the pixel is not always at 10,10. What if the application has no border? What if the windows scheme creates larger or smaller borders?
Is there a way to get pixels with 0,0 always starting at the top-left of the client area rather than of the window area?