Hi everyone, I've written a simple programme using Visual C++ that assigns the values of the mouse's coordinates to a set of variables each time the mouse is moved to a new position with a button pressed. It then draws a line between the new cursor position and the position stored in the variables, allowing you to sketch with the mouse. What I would like to do is assign a function to repaint the dialogue box to its initial setting (i.e. only containing a static text box of instructions and two push buttons) to a "clear drawing" push button, but don't know what function to use. A colleague suggested assigning the Invalidate() or Invalidate(TRUE ) function in the following manner:
to the BN_CLICKED event of the push button, but it did not work. Any ideas or suggestions on how to get this working would be much appreciated,
Thanks, Radders
Code:
this -> Invalidate()
Thanks, Radders
Comment