Hi List244,
I'm not sure if I understand - the rect returned by GetClientRect() always returns the rectangle of the window's client area with 0, 0 as the top/left point.
So I guess the problem is how you monitor the pixel at 10, 10 - IMO you need a DC for the client area of the window - this is returned by GetDC().
Maybe you should post some code so we could see what the problem is ...
ZOPPO
Main Topics
Browse All Topics





by: abelPosted on 2009-05-13 at 08:48:55ID: 24376269
Isn't what you are after the function GetClientRect? It retrieves a RECT structure without the borders. And the (0, 0) position is always inside the border for any painting functions.