Auto Draw is a program built into WinX which automatically redraws your window. When you draw with Auto Draw, a record is added to a linked list describing the element you drew. When your window needs redrawing Auto Draw simply plays the records into the device. This structure allows Auto Draw to output the results of your drawing to bitmaps and printers.
Auto Draw is very easy to use. Use WinXClear to clear all Auto Draw objects from the window. To draw to the window, use the WinXDraw functions (listed in the related links section of this page). To update the window to display the results of the drawing, call WinXUpdate.
Auto Draw has a handy undo feature. You can use it to undo any drawing operation since the last WinXClear call. To use the undo feature, you need to store the return value from the WinXDraw function that drew the element you want to undo. You then pass that value to the WinXUndo function and call WinXUpdate to see the results.