MFC VC++ 2010 windows application

  • Thread starter Thread starter paramesh s
  • Start date Start date
P

paramesh s

Guest
hello sir,

i am very new to develop the application in MFC VC++ 2010. i have to develop one requirement in my project.

requirement:

i have to develop the code for scroll bar. that have to move with mouse wheel scrolling. right know i can able to move the scroll bar by grading. but it should also with mouse wheel.

kindly please let me know how to implement. also i have implemented some code pasted below but it's not working.

kindly please give me your suggestions and inputs.

BEGIN_MESSAGE_MAP(CMainFrame, CFrameWndEx)

ON_WM_LBUTTONUP()
ON_WM_MOUSEWHEEL()
ON_WM_LBUTTONDOWN()

END_MESSAGE_MAP()

void CMainFrame::OnMouseMove(UINT nFlags, CPoint point)
{
//TODO : Add your message handler code here and/or call default
nFlags = WM_MOUSEMOVE;
CFrameWndEx::OnMouseMove(nFlags, point);

}
void CMainFrame::OnLButtonUp(UINT nFlags, CPoint point)
{
//TODO : Add your message handler code here and/or call default
nFlags = WM_LBUTTONUP;
CFrameWndEx::OnMouseMove(nFlags, point);

}
void CMainFrame::OnLButtonDown(UINT nFlags, CPoint point)
{
//TODO : Add your message handler code here and/or call default
nFlags = WM_LBUTTONDOWN;
CFrameWndEx::OnMouseMove(nFlags, point);

}

https://social.msdn.microsoft.com/Forums/getfile/1287993


i have added my requirement pic  in the above like please have a look.

Continue reading...
 
Back
Top