How do you force a window to redraw itself in a message handler?
I have a tree control, and I have over-ridden the OnPaint handler to do some
specialized drawing while a drag operation is taking place. I use an
OnLButtonUp handler to end the drag operation. The problem is that lines
from the specialized drawing are left over after the mouse button is
I have tried using Invalidate(TRUE), RedrawWindow(), and UpdateWindow() at
the end of the OnLButtonUp handler, but none of them are able to force the
tree control to redraw itself (and thus remove the specialized drawing
Can someone help?
_ _ __
/ ) ) _ _ /_ _ ( ) ./_ _
/ / / (// /( (/_) \ |///(//)_)