Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 02-04-2004, 12:23 AM   #1 (permalink)
 
Newb Techie

Join Date: Feb 2004

Posts: 2

Spidy

Default MFC Programming

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.
Spidy is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On