Tim & Lynn
|MFC Tutorial Part 3 - Paint Brush application from CoderSource.net
| ||This MFC Tutorial part 3 deals with the task of creating a simple paint brush application. This program will draw a line when the left mouse button is clicked and dragged. This will stop drawing the line when the left mouse button is released.
This MFC Tutorial application creates a window by using the class CFrameWnd, and also uses Message map. When the left mouse button is clicked, the application stores the window co-ordinates in the variable called m_StartPoint of type CPoint. When the mouse button is released it keeps the mouse up co-ordinates in the variable m_EndPoint of the same CPoint type.