请教 OnPrepareDC 的使用
这是我的代码
void CMyTestDlg::OnMouseMove(UINT nFlags, CPoint point){ // TODO: Add your message handler code here and/or call default if(bcapture) { CClientDC dc(this); OnPrepareDC(&dc); //error C3861: 'OnPrepareDC': identifier not found CRect oldrc(pt,size); InvalidateRect(oldrc,TRUE); pt=point-offsetsize; CRect newrc(pt,size); InvalidateRect(newrc,TRUE); } CDialog::OnMouseMove(nFlags, point);}