Jump to content
Software FX Community

MouseMoveEvent for Chart Object


Megha

Recommended Posts

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?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...