执行Track函数改变矩形框大小,或者拖动。只有拖动完以后视图才更新,怎样在拖动的同时更新视图?

解决方案 »

  1.   

    CRectTracker::OnChangedRect
    virtual void OnChangedRect( const CRect& rectOld );ParametersrectOldContains the old device coordinates of the CRectTracker object.ResCalled by the framework whenever the tracker rectangle has changed during a call to Track. At the time this function is called, all feedback drawn with DrawTrackerRect has been removed. The default implementation of this function does nothing.Override this function when you want to perform any actions after the rectangle has been resized.CRectTracker Overview |  Class Members |  Hierarchy Chart
    send message to the view to perform redraw
      

  2.   

    我定义了一个CRectTracker的对象,怎样重载这个函数?
      

  3.   

    从CRectTracker派生一个类就可以