How do I force a repaint when I Update the window graphics. RRS feed

  • Question

  • I'm working with the form designer in visual c++ 2005, where I have let the form create the standard main, also have added a few buttons. What my program does is draw a line on the screen which it does fine in the on_Paint() routine at start, but when I update that line by pressing a button, the only way to get it to redraw the new line is to hide and Unhide the screen.

    How can I force this to happen when I change something. Later on i'm going to have to add real time update from time to time. Will that be a challenge to add in.

    Thanks in advance

    Saturday, February 10, 2007 2:18 PM