How to use Class CRectTracker in ON_WM_MBUTTONDOWN?
Posted on 2002-03-28
At first look at the code:
void CTrackerView::OnMButtonDown(UINT nFlags, CPoint point)
if (tracker.TrackRubberBand(this, point)
A(); // To do ON_WM_MBUTTONUP event while after the mouse midbutton is released
if these code is in OnLButtonDown, All is OK, but it's no way if it is moved into OnMButtonDown, CRectTracker can redraw the rectangle dynamically and perfectly when mouse pointer is moving on the view, but it can not know release event while the mouse midbutton is released.
How to get to the fuction A in codes? experts, help me! thanx.