evc/VC 画点 移动对话框就不见了
我用evc写个按钮的代码,想实现点下按钮,就画一个红色圈,可是我移动对话框就不见了,求指教啊!不知道哪里要改啊?
void CLedDlg::OnCfK() { // TODO: Add your control notification handler code here CDC *pDC = new CClientDC(this); CBrush brush; brush.CreateSolidBrush(RGB(255,0,0)); CBrush *pOldBrush = pDC->SelectObject(&brush); pDC->Ellipse(85,65,100,80); pDC->SelectObject(pOldBrush); delete pDC;}