Hi, The example is the CScribbleView class code for:
virtual void OnDraw(CDC\* pDC); // overridden to draw this view
afx\_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx\_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx\_msg void OnMouseMove(UINT nFlags, CPoint point);
. If you cannot study this code and understand how it is an answer to your question think of another kind of working area ;) cheers, AR
When the wise (person) points at the moon the fool looks at the finger (Chinese proverb)