OFFICE/프로그램

MFC] CDC HDC 가져오기

gandus 2013. 1. 14. 14:59

HWND hWnd = ::GetActiveWindow();
 HDC hdc = ::GetDC(hWnd); 
 m_pPrintPreviewDC = CDC::FromHandle(hdc);

[출처] MFC] CDC HDC 가져오기|작성자 jack