#include "wx/msw/printdlg.h"
#elif defined(__WXMAC__)
#include "wx/mac/printdlg.h"
+#include "wx/mac/private/print.h"
#else
#include "wx/generic/prntdlgg.h"
#endif
#ifdef __WXMSW__
- #include "wx/msw/private.h"
- #include <commdlg.h>
-
+ #include "wx/msw/wrapcdlg.h"
#ifndef __WIN32__
#include <print.h>
#endif
#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
return new wxWindowsPrintNativeData;
#elif defined(__WXMAC__)
- return new wxMacPrintNativeData;
+ return new wxMacCarbonPrintData;
#else
return new wxPostScriptPrintNativeData;
#endif
if (m_printPreview->GetPrintoutForPrinting())
buttons |= wxPREVIEW_PRINT;
- m_controlBar = new wxPreviewControlBar(m_printPreview, buttons, this, wxPoint(), wxSize(400, 40));
+ m_controlBar = new wxPreviewControlBar(m_printPreview, buttons, this, wxPoint(0,0), wxSize(400, 40));
m_controlBar->CreateButtons();
}