获得CDC * CDC* pDC pDC=GetDC();//原型CDC* CWnd::GetDC() 获得hdc HDC hDC; 1,hDC=GetDC(pCpp->hWnd); 2,pDC->m_hDC;