Hi
I have my object, derived from CWnd. It's an chceker with little rectangles. I have an data array, where I save color for each rectangle. When I push mouse button, I can coorize the rectangles with selected color (sth like drawing in grid) First I've made it with function ColorizeAt(x,y), which made getDC and drawn a Rect. Now I paint everything in OnPaint() and the ColorizeAt function does just InvalidateRect and updatewindow an selected rectangle.
Th Problem is, that when I now go somewhere into that checker, push lbutton down and drag, not every, but just every fith or sixth rect is filled with color. Like when the window will not be able to catch all the messages.
Where can be the problem? What's the best way to do that. Some example code somewhere? Thanx.
bubak
I have my object, derived from CWnd. It's an chceker with little rectangles. I have an data array, where I save color for each rectangle. When I push mouse button, I can coorize the rectangles with selected color (sth like drawing in grid) First I've made it with function ColorizeAt(x,y), which made getDC and drawn a Rect. Now I paint everything in OnPaint() and the ColorizeAt function does just InvalidateRect and updatewindow an selected rectangle.
Th Problem is, that when I now go somewhere into that checker, push lbutton down and drag, not every, but just every fith or sixth rect is filled with color. Like when the window will not be able to catch all the messages.
Where can be the problem? What's the best way to do that. Some example code somewhere? Thanx.
bubak