I am currently attempting to make an MFC SDI program in which a user can run an application that allows him/her to sketch or create a polygon. The main problem I am having is with message handling. There exists message handlers for menu items, but I dont understand how to nest other handlers like mouse move and move button down, etc inside the menu handlers. For example:
void CSketchView::OnDrawingfunctionSketch()
{
//Left Mouse Pressed
void CSketchView::OnLButtonDown( nFlags, point)
{
.....
}
//Left Mouse Released
void CSketchView::OnLButtonUp(UINT nFlags, CPoint point)
{
......
}
//Mouse Moves
void CSketchView::OnMouseMove(UINT nFlags, CPoint point)
{
.......
}
}
is this the correct setup or do I need to use if statements or what? Any help would be greatly appreciated.