Typically, you must write code to:
When a new Scribble document is created, CScribbleDoc
must create a pen for drawing new strokes. When a document is closed, the document must delete the stroke objects it has stored up. The next topic, Initializing and Cleaning Up, describes how to do this for Scribble.