Megha Posted May 8, 2009 Report Share Posted May 8, 2009 I am using a chart control and for the same i need to perform certain operations on MouseMove Event.But for me on MouseMove Event, GetPoint() or GetSeries() no method is returning me correct value.I am working on VC++.Below I am Copying the code:::BEGIN_EVENTSINK_MAP(CLineProgressView, CFormView)ON_EVENT(CLineProgressView, IDC_CHARTACHIEVEMENT, 12, OnMouseMoveAchievementChart, VTS_DISPATCH VTS_DISPATCH)END_EVENTSINK_MAP()void CLineProgressView::OnMouseUpAchievementChart(LPDISPATCH sender, LPDISPATCH args) { C_MouseEventArgsX MouseEventArgsX ; MouseEventArgsX.AttachDispatch(args,true); long lBoard; lBoard = MouseEventArgsX.GetPoint(); MouseEventArgsX.DetachDispatch(); POINT point; point.x=0; point.y=0; CFormView::OnLButtonUp(0, point); }I am not getting this "lBoard" value at all. Actually same is working properly for MouseUp and MouseDown EventCould you please help me? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.