if(PreViewFlag){PreViewFlag=false;KillTimer(1);InvalidateRect(m_rectFrame,false);OnPaint();if(m_hBmp)SaveToBuffer(BufferA,m_hBmp,dcMem);AfxMessageBox("GetDatatoBufferAOK!");PreViewFlag=true;SetTimer(1,66,NULL);}