MainFrame外获得窗体的句柄,然后将其转换为CDC
HDC hDC;
hDC= GetDC(AfxGetMainWnd()->m_hWnd); // get the hDC of main window
CDC * pDC = CDC::FromHandle(hDC); // HDC to CDC
pDC->。。。
MainFrame外获得窗体的句柄,然后将其转换为CDC
HDC hDC;
hDC= GetDC(AfxGetMainWnd()->m_hWnd); // get the hDC of main window
CDC * pDC = CDC::FromHandle(hDC); // HDC to CDC
pDC->。。。