How to enable Mouse Wheel Scroll enable using MFC ?

  • Thread starter Thread starter K.Nehra
  • Start date Start date
K

K.Nehra

Guest
Hi ..experienced...i am new with MFC...i want to enable Mouse Wheel Scroll in my application..and for it i am using OnMouseWheel() function but it don't get call when i scroll with mouse.the code is :


BOOL CsdViewSingle::OnMouseWheel(UINT fFlags,

short zDelta, CPoint point)

{




if (MK_MBUTTON == ( fFlags & MK_MBUTTON ))


return TRUE;


// we can't get out of it--perform the scroll ourselves

return DoMouseWheel(fFlags, zDelta, point);

}

can anyone help me about Mouse Wheel Scrolling(Without pressing middle button just scroll middle button of mouse) using MFC/C++


Continue reading...
 
Back
Top