Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Documents in Scribble store the lines, or “strokes,” that make up a drawing. Because a drawing is typically made up of many strokes, the document stores a list of all the strokes the user has drawn. The following figure shows a single stroke drawn in a Scribble document’s view.
One Stroke in Scribble
Documents in Scribble are objects of class CScribbleDoc
, which is derived from CDocument. CScribbleDoc
has a member variable named m_strokeList
for storing a list of strokes and member functions to manage the stroke list. You can view this member variable in the ClassView pane by expanding the icon for class CScribbleDoc
.
Note By convention, class names begin with an uppercase “C” and member variable names begin with a lowercase “m_”.