invoke InvalidateRect,,0,1
code/]

works fine but:


invoke GetWindowRect,,Rect
invoke InvalidateRect,,Rect,1


does not.

Any ideas?

What I want to do is to selectively repaint portions of the window. This did not work, so I made a 'selective' approach that I thought would be the save as the non-selective approach to see if it worked the same. It did not.
Posted on 2005-10-22 19:55:49 by mikes


invoke InvalidateRect,,0,1


works fine but:


invoke GetWindowRect,,Rect
invoke InvalidateRect,,Rect,1


does not.

Any ideas?

What I want to do is to selectively repaint portions of the window. This did not work, so I made a 'selective' approach that I thought would be the save as the non-selective approach to see if it worked the same. It did not.


GetWindowRect returns "screen" coordinates.
InvalidateRect requires "client" coordinates.
What you probably wanted was GetClientRect.
Also make sure that the RECT arguments are actually addresses of a RECT. (you can use ADDR rect_label)
Posted on 2005-10-22 21:00:56 by tenkey
That was it... thank you!
Posted on 2005-10-22 21:26:44 by mikes