HWND hWnd = ::GetActiveWindow();
HDC hdc = ::GetDC(hWnd);
m_pPrintPreviewDC = CDC::FromHandle(hdc);
[출처] MFC] CDC HDC 가져오기|작성자 jack
HWND hWnd = ::GetActiveWindow();
HDC hdc = ::GetDC(hWnd);
m_pPrintPreviewDC = CDC::FromHandle(hdc);
[출처] MFC] CDC HDC 가져오기|작성자 jack