CRectTracker  tracker;
tracker.TrackRubberBand(this,point);
CClientDC dc(this);
CBrush Brush(brushco);
dc.SelectObject(brush);
switch(m_ndrawmode){
case DM_POLY:
   m_pOver=false;
   if(m_pLine==true)
   {
   m_ptFirst=point;
   m_pLine=false;
   m_ptSecond=point;
   }
   m_ptSecond=point;
   m_ptThird=point;    break;
}