#ifndef WX_PRECOMP
#include <stdio.h>
+#include "wx/string.h"
#include "wx/utils.h"
#include "wx/app.h"
#endif
#include "wx/gdicmn.h"
#include "wx/cmndata.h"
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
#include <windows.h>
#ifndef __WIN32__
wxPrintData::wxPrintData(void)
{
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
printData = NULL;
#endif
printOrientation = wxPORTRAIT;
wxPrintData::~wxPrintData(void)
{
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
PRINTDLG *pd = (PRINTDLG *)printData;
if ( pd && pd->hDevMode )
GlobalFree(pd->hDevMode);
#endif
}
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
void wxPrintData::ConvertToNative(void)
{
PRINTDLG *pd = (PRINTDLG*) printData;
wxPageSetupData::~wxPageSetupData(void)
{
-#if defined(__WIN95__)
+#if defined(__WIN95__) && defined(__WXMSW__)
PAGESETUPDLG *pd = (PAGESETUPDLG *)m_pageSetupData;
if ( pd && pd->hDevMode )
GlobalFree(pd->hDevMode);
m_enableHelp = data.m_enableHelp;
}
-#if defined(__WIN95__)
+#if defined(__WXMSW__) && defined(__WIN95__)
void wxPageSetupData::ConvertToNative(void)
{
PAGESETUPDLG *pd = (PAGESETUPDLG*) m_pageSetupData;
pd->Flags |= PSD_SHOWHELP;
pd->lStructSize = sizeof( PAGESETUPDLG );
- pd->hwndOwner=(HANDLE)NULL;
+ pd->hwndOwner=(HWND)NULL;
pd->hDevNames=(HWND)NULL;
pd->hInstance=(HINSTANCE)NULL;