X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae500232a4e961a567a5fb375fcf4f4a23216bd2..daa66792aa4a108887d2b4e8078df6067b6a762f:/src/common/cmndata.cpp diff --git a/src/common/cmndata.cpp b/src/common/cmndata.cpp index 08e3e0cf09..f9ecd46ff9 100644 --- a/src/common/cmndata.cpp +++ b/src/common/cmndata.cpp @@ -48,13 +48,12 @@ #endif // wxUSE_PRINTING_ARCHITECTURE #ifdef __WXMSW__ - #include + #include #include "wx/msw/private.h" - #if !defined(__WIN32__) - #include + #if defined(__WXWINCE__) && !wxUSE_SMARTPHONE #include - #endif // Win16 + #endif #if defined(__WATCOMC__) || defined(__SYMANTEC__) || defined(__SALFORDC__) #include @@ -327,7 +326,11 @@ void wxPrintData::ConvertToNative() pd.lStructSize = 66; #else memset(&pd, 0, sizeof(PRINTDLG)); +#ifdef __WXWINCE__ + pd.cbStruct = sizeof(PRINTDLG); +#else pd.lStructSize = sizeof(PRINTDLG); +#endif #endif pd.hwndOwner = (HWND)NULL;