HI, I have a simple question about painting in a standard win32 application window.
How do I go about updating my display.
At the moment I have a WM_PAINT message handler which will paint a line, the lines position is given by x.
So i want the lines position to change when x changes
I've tried doing a SendMessage(hWnd, WM_PAINT, 0, 0);
but this won't repaint the line. The only time the line chagnes is if the window leaves the foreground then comes back up.
Soym question is, how do you go about updating the window with the new paint information.
Thanks in advance