X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fa4f4c58ea5c92389996db8d773aceec69b9efd3..f96524a0f6e44549b55c5adbbb90c8ee0d5419f1:/src/msw/printdlg.cpp diff --git a/src/msw/printdlg.cpp b/src/msw/printdlg.cpp index a9b861d09f..575fb82ffd 100644 --- a/src/msw/printdlg.cpp +++ b/src/msw/printdlg.cpp @@ -37,6 +37,7 @@ #include "wx/printdlg.h" #include "wx/msw/printdlg.h" +#include "wx/msw/dcprint.h" #include "wx/paper.h" #include @@ -638,7 +639,7 @@ int wxWindowsPrintDialog::ShowModal() if ( ret && (pd->hDC) ) { - wxPrinterDC *pdc = new wxPrinterDC( (WXHDC) pd->hDC ); + wxPrinterDC *pdc = new wxPrinterDCFromHDC( (WXHDC) pd->hDC ); m_printerDC = pdc; ConvertFromNative( m_printDialogData ); return wxID_OK;