]> git.saurik.com Git - wxWidgets.git/commitdiff
Misc. 16-bit compilation fixes
authorJulian Smart <julian@anthemion.co.uk>
Sun, 5 Sep 1999 15:14:50 +0000 (15:14 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 5 Sep 1999 15:14:50 +0000 (15:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

28 files changed:
distrib/msw/tmake/dos.t
distrib/msw/tmake/filelist.txt
include/wx/dirdlg.h
include/wx/generic/dirdlgg.h
include/wx/generic/treectrl.h
include/wx/image.h
include/wx/motif/setup0.h
include/wx/msw/dirdlg.h
include/wx/msw/setup0.h
include/wx/prntbase.h
include/wx/treectrl.h
src/common/imaggif.cpp
src/common/imagpcx.cpp
src/common/imagpnm.cpp
src/common/prntbase.cpp
src/common/sizer.cpp
src/generic/printps.cpp
src/generic/treectrl.cpp
src/gtk/data.cpp
src/gtk1/data.cpp
src/motif/data.cpp
src/msw/accel.cpp
src/msw/data.cpp
src/msw/makefile.b32
src/msw/makefile.bcc
src/msw/makefile.dos
src/msw/printwin.cpp
src/msw/utilsexc.cpp

index 70e95a02e1abc8a9cd1bfad60d2186c4ef103957..4a4bdc1f5ec47cb00b4da8055ea4d2cd648056b2 100644 (file)
@@ -196,6 +196,17 @@ $(COMMDIR)/y_tab.c:     $(COMMDIR)/dosyacc.c
 $(COMMDIR)/lex_yy.c:    $(COMMDIR)/doslex.c
     copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
 
+$(COMMDIR)/extended.obj:     $*.c
+        cl @<<
+$(CPPFLAGS2) /Fo$@ /c /Tc $*.c
+<<
+
+$(COMMDIR)/unzip.obj:     $*.c
+        cl @<<
+$(CPPFLAGS2) /Fo$@ /c /Tc $*.c
+<<
+
+
 $(OBJECTS):    $(WXDIR)/include/wx/setup.h
 
 # Peripheral components
index 477f8106a3dec227c4e046c6b857071c8cc1ebad..4293962cc9f90cb837c3734338ddcaff011d58d1 100644 (file)
@@ -120,10 +120,10 @@ http.cpp  C       S
 imagbmp.cpp    C
 image.cpp      C
 imaggif.cpp    C
-imagjpeg.cpp   C
-imagpcx.cpp    C
-imagpng.cpp    C
-imagpnm.cpp    C
+imagjpeg.cpp   C       32
+imagpcx.cpp    C       32
+imagpng.cpp    C       32
+imagpnm.cpp    C       32
 intl.cpp       C
 ipcbase.cpp    C
 layout.cpp     C
@@ -233,7 +233,7 @@ ownerdrw.cpp        M
 palette.cpp    M
 pen.cpp        M
 penwin.cpp     M
-pnghand.cpp    M
+pnghand.cpp    M       32
 printdlg.cpp   M
 printwin.cpp   M
 radiobox.cpp   M
index 5da68a5a45a98a012b7486ebd2f764db3eb6eaa5..3f23e130474313e8da7f382083ae5c66d8121bce 100644 (file)
@@ -1,6 +1,14 @@
 #ifndef _WX_DIRDLG_H_BASE_
 #define _WX_DIRDLG_H_BASE_
 
+// ----------------------------------------------------------------------------
+// constants
+// ----------------------------------------------------------------------------
+
+WXDLLEXPORT_DATA(extern const wxChar*) wxDirDialogNameStr;
+WXDLLEXPORT_DATA(extern const wxChar*) wxDirDialogDefaultFolderStr;
+WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString;
+
 #if defined(__WXMSW__)
 #if defined(__WIN16__) || defined(__GNUWIN32__) || defined(__SALFORDC__)
 #include "wx/generic/dirdlgg.h"
index 27ea3c4e69e8d4a9da1946ed0c6581df5f651807..74ac59feb058008f91ff9121046b6945e7e7c13b 100644 (file)
@@ -105,11 +105,11 @@ public:
   
     wxDirCtrl();
     wxDirCtrl(wxWindow *parent, const wxWindowID id = -1, 
-             const wxString &dir = "/",
+             const wxString &dir = wxDirDialogDefaultFolderStr,
              const wxPoint& pos = wxDefaultPosition,
              const wxSize& size = wxDefaultSize,
              const long style = wxTR_HAS_BUTTONS,
-             const wxString& name = "wxTreeCtrl" );
+             const wxString& name = wxTreeCtrlNameStr );
     void ShowHidden( const bool yesno );
     void OnExpandItem(wxTreeEvent &event );
     void OnCollapseItem(wxTreeEvent &event );
index 92a3cc5dbbe0f2477a53d55444ec2a5ad3066ee4..1a42b69ef290216a2e39aaa67c034b139fcf31a3 100644 (file)
@@ -179,10 +179,10 @@ class WXDLLEXPORT wxTreeTextCtrl: public wxTextCtrl
     wxTreeTextCtrl(void) {};
     wxTreeTextCtrl( wxWindow *parent, const wxWindowID id,
                     bool *accept, wxString *res, wxTreeCtrl *owner,
-                    const wxString &value = "",
+                    const wxString &value = wxEmptyString,
                     const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
                     int style = 0, const wxValidator& validator = wxDefaultValidator,
-                    const wxString &name = "wxTreeTextCtrlText" );
+                    const wxString &name = wxTextCtrlNameStr );
     void OnChar( wxKeyEvent &event );
     void OnKillFocus( wxFocusEvent &event );
 
index a02183e100be69e00d65be1e163347cf81fcc4f9..b02c3dddfe86cf75d0878a61bbfdd3502f174a4f 100644 (file)
@@ -36,9 +36,15 @@ class WXDLLEXPORT wxPNGHandler;
 class WXDLLEXPORT wxJPEGHandler;
 #endif
 class WXDLLEXPORT wxBMPHandler;
+#if wxUSE_GIF
 class WXDLLEXPORT wxGIFHandler;
+#endif
+#if wxUSE_PNM
 class WXDLLEXPORT wxPNMHandler;
+#endif
+#if wxUSE_PCX
 class WXDLLEXPORT wxPCXHandler;
+#endif
 class WXDLLEXPORT wxImage;
 
 //-----------------------------------------------------------------------------
@@ -181,13 +187,13 @@ public:
   virtual bool CanRead( wxInputStream& stream );
 #endif
 };
-
 #endif
 
 //-----------------------------------------------------------------------------
 // wxPNMHandler
 //-----------------------------------------------------------------------------
 
+#if wxUSE_PNM
 class WXDLLEXPORT wxPNMHandler : public wxImageHandler
 {
   DECLARE_DYNAMIC_CLASS(wxPNMHandler)
@@ -208,11 +214,13 @@ public:
   virtual bool CanRead( wxInputStream& stream );
 #endif
 };
+#endif
 
 //-----------------------------------------------------------------------------
 // wxPCXHandler
 //-----------------------------------------------------------------------------
 
+#if wxUSE_PCX
 class WXDLLEXPORT wxPCXHandler : public wxImageHandler
 {
   DECLARE_DYNAMIC_CLASS(wxPCXHandler)
@@ -233,6 +241,7 @@ public:
   virtual bool CanRead( wxInputStream& stream );
 #endif
 };
+#endif
 
 //-----------------------------------------------------------------------------
 // wxImage
index 307855bc98693147fdbf372294f9c4fd3513fedc..24dd35bd963defbc5638da65826822048794648a 100644 (file)
  */
 #define wxUSE_LIBJPEG 0
 /*
- * Use gif
+ * Use GIF
  */
-#define wxUSE_LIBGIF 0
+#define wxUSE_LIBGIF 1
+/*
+ * Use PCX
+ */
+#define wxUSE_PCX 1
+/*
+ * Use PNM
+ */
+#define wxUSE_PNM 1
 /*
  * Use iODBC
  */
index 71886f18c573acd14cf7fea2423acd0b08b15f6c..d49268d87ffda7efdfd2f7448e0a70f0176b87a1 100644 (file)
@@ -25,7 +25,7 @@ class WXDLLEXPORT wxDirDialog: public wxDialog
 DECLARE_DYNAMIC_CLASS(wxDirDialog)
 public:
     wxDirDialog(wxWindow *parent, const wxString& message = wxFileSelectorPromptStr,
-        const wxString& defaultPath = "",
+        const wxString& defaultPath = wxEmptyString,
         long style = 0, const wxPoint& pos = wxDefaultPosition);
 
     inline void SetMessage(const wxString& message) { m_message = message; }
index d3471be26320e1ed14185e8248bdc64c3da61a1f..e790a6e912b155f1031e013ff5f3962cadb2edfe 100644 (file)
                                   // Use PNG bitmap code
 #define wxUSE_LIBJPEG       0
                                   // Use JPEG bitmap code
-#define wxUSE_LIBGIF        0
-                                 // Use GIF bitmap code
+#define wxUSE_LIBGIF        1
+                                  // Use GIF bitmap code
+#define wxUSE_PNM           1
+                                  // Use PNM bitmap code
+#define wxUSE_PCX           1
+                                  // Use PCX bitmap code
 #define wxUSE_SERIAL        0
                                   // Use serialization (requires utils/serialize)
 #define wxUSE_DYNLIB_CLASS  0
 #undef wxUSE_TOOLTIPS
 #define wxUSE_TOOLTIPS 0
 
+#undef wxUSE_LIBPNG
+#define wxUSE_LIBPNG 0
+
+#undef wxUSE_LIBJPEG
+#define wxUSE_LIBJPEG 0
+
+#undef wxUSE_LIBGIF
+#define wxUSE_LIBGIF 0
+
+#undef wxUSE_PNM
+#define wxUSE_PNM 0
+
+#undef wxUSE_PCX
+#define wxUSE_PCX 0
+
 #endif
 
 #endif
index 158019f4ee2f72b7b2ed56543c7cddb2e960917a..ebc51df02714306131fe42a565a744ae9e8fb44a 100644 (file)
@@ -344,6 +344,7 @@ protected:
     int               m_maxPage;
 
     bool              m_isOk;
+    bool              m_printingPrepared; // Called OnPreparePrinting?
 
 private:
     void Init(wxPrintout *printout, wxPrintout *printoutForPrinting);
index 8bd9bdd3d46ce782c96c2054abc833e2b9ab3cea..b6d81ef686c25dad112a37eb459c340451c5cdef 100644 (file)
@@ -8,6 +8,16 @@
 #include "wx/control.h"
 #include "wx/event.h"
 
+// ----------------------------------------------------------------------------
+// constants
+// ----------------------------------------------------------------------------
+
+#ifdef __WXMSW__
+WXDLLEXPORT_DATA(extern const char*) wxTreeCtrlNameStr;
+#else
+#define wxTreeCtrlNameStr "wxTreeCtrl"
+#endif
+
 // ----------------------------------------------------------------------------
 // include the platform-dependent wxTreeCtrl class
 // ----------------------------------------------------------------------------
index 55348602d1cb36aae0e9819583ef3b3461e0b890..f8c799a2559ec3cc25a53b2cc78cb2d4ed17bf8f 100644 (file)
@@ -95,4 +95,4 @@ bool wxGIFHandler::CanRead( wxInputStream& stream )
   // wxUSE_STREAMS
 
 #endif
-  // wxUSE_GIF
+  // wxUSE_LIBGIF
index f8c036362462c51b42a90070b898492422a9b202..e10679ec8bae8dbbaa4a588fdc5ce43febe976dc 100644 (file)
@@ -25,6 +25,8 @@
 #include "wx/module.h"
 #include "wx/log.h"
 
+#if wxUSE_PCX
+
 //-----------------------------------------------------------------------------
 // PCX decoding
 //-----------------------------------------------------------------------------
@@ -272,7 +274,7 @@ bool wxPCXHandler::CanRead( wxInputStream& stream )
     return (c == 10);
 }
 
-
 #endif // wxUSE_STREAMS
 
+#endif // wxUSE_PCX
 
index 5352da9f4fdd23a931ccea5a6f7f3000c9233114..d2200424336037cc4d162f5c83721cab5bdc7dbb 100644 (file)
@@ -23,6 +23,8 @@
 #include "wx/log.h"
 #include "wx/txtstrm.h"
 
+#if wxUSE_PNM
+
 #ifdef __WXMSW__
 #include <windows.h>
 #endif
@@ -158,4 +160,5 @@ bool wxPNMHandler::CanRead( wxInputStream& stream )
 
 #endif // wxUSE_STREAMS
 
+#endif // wxUSE_PNM
 
index 9c1c91ee2e3dd74937a70c034199bdb1876b250b..5179a2a5b5343b685beddd693131e3418ecc72dd 100644 (file)
@@ -563,8 +563,10 @@ void wxPrintPreviewBase::Init(wxPrintout *printout,
     m_leftMargin = 40;
     m_pageWidth = 0;
     m_pageHeight = 0;
+    m_printingPrepared = FALSE;
 
-    printout->OnPreparePrinting();
+    // Too soon! Moved to RenderPage.
+    // printout->OnPreparePrinting();
 
     // Get some parameters from the printout, if defined
     int selFrom, selTo;
@@ -678,6 +680,13 @@ bool wxPrintPreviewBase::RenderPage(int pageNum)
     m_previewPrintout->SetDC(&memoryDC);
     m_previewPrintout->SetPageSizePixels(m_pageWidth, m_pageHeight);
 
+    // Need to delay OnPreparePrinting until here, so we have enough information.
+    if (!m_printingPrepared)
+    {
+        m_previewPrintout->OnPreparePrinting();
+        m_printingPrepared = TRUE;
+    }
+
     m_previewPrintout->OnBeginPrinting();
 
     if (!m_previewPrintout->OnBeginDocument(m_printDialogData.GetFromPage(), m_printDialogData.GetToPage()))
index fcac0711a7b3d4454412277f893c1afb18a2807a..bc46ed416a4afb735edf25c015ff673dd8c2a61c 100644 (file)
@@ -1,6 +1,6 @@
 /////////////////////////////////////////////////////////////////////////////
 // Name:        sizer.cpp
-// Purpose:     provide new wxSizer class for layounting
+// Purpose:     provide new wxSizer class for layout
 // Author:      Robert Roebling and Robin Dunn
 // Modified by:
 // Created:     
index ec2b99b5d3b3a31c80b24c51542a042f02081d99..bab3bf9a56ceaed024c387a8e59a0201100ce9f8 100644 (file)
@@ -85,7 +85,12 @@ bool wxPostScriptPrinter::Print(wxWindow *parent, wxPrintout *printout, bool pro
         return FALSE;
 
     printout->SetIsPreview(FALSE);
-    printout->OnPreparePrinting();
+
+    // 4/9/99, JACS: this is a silly place to allow preparation, considering
+    // the DC and no parameters have been set in the printout object.
+    // Moved further down.
+
+    // printout->OnPreparePrinting();
 
     // Get some parameters from the printout, if defined
     int fromPage, toPage;
@@ -170,6 +175,8 @@ bool wxPostScriptPrinter::Print(wxWindow *parent, wxPrintout *printout, bool pro
     // Create an abort window
     wxBeginBusyCursor();
 
+    printout->OnPreparePrinting();
+
     int
        pagesPerCopy = m_printDialogData.GetToPage()-m_printDialogData.GetFromPage()+1,
        totalPages = pagesPerCopy * m_printDialogData.GetNoCopies(),
index 3dd2b16562503e8038cab4355e01447cf602ede5..65f6406654aa38e2b7d571fd07639667a5426b48 100644 (file)
@@ -1296,7 +1296,7 @@ void wxTreeCtrl::SetImageList(wxImageList *imageList)
    // May be toggle off. Then wxTreeCtrl will spread when
    // necessary (which might look ugly).
 #if 1
-   wxPaintDC dc(this);
+   wxClientDC dc(this);
    m_lineHeight = (int)(dc.GetCharHeight() + 4);
    int
       width = 0,
@@ -1527,7 +1527,7 @@ void wxTreeCtrl::DrawBorder(wxTreeItemId &item)
 
     wxGenericTreeItem *i=item.m_pItem;
 
-    wxPaintDC dc(this);
+    wxClientDC dc(this);
     PrepareDC( dc );
     dc.SetLogicalFunction(wxINVERT);
 
@@ -1546,7 +1546,7 @@ void wxTreeCtrl::DrawLine(wxTreeItemId &item, bool below)
 
     wxGenericTreeItem *i=item.m_pItem;
 
-    wxPaintDC dc(this);
+    wxClientDC dc(this);
     PrepareDC( dc );
     dc.SetLogicalFunction(wxINVERT);
 
index 60234d0fd6f61c590b16c5cd3c953cdc31fcad62..95bfdda032db62a1d185664e0065e3dc901e2cb1 100644 (file)
@@ -176,6 +176,8 @@ const wxChar *wxFileSelectorPromptStr = _T("Select a file");
 const wxChar *wxFileSelectorDefaultWildcardStr = _T("*.*");
 const wxChar *wxInternalErrorStr = _T("wxWindows Internal Error");
 const wxChar *wxFatalErrorStr = _T("wxWindows Fatal Error");
+const wxChar *wxDirDialogNameStr = _T("wxDirCtrl");
+const wxChar *wxDirDialogDefaultFolderStr = _T("/");
 
 /* See wx/utils.h */
 const wxChar *wxFloatToStringStr = _T("%.2f");
index 60234d0fd6f61c590b16c5cd3c953cdc31fcad62..95bfdda032db62a1d185664e0065e3dc901e2cb1 100644 (file)
@@ -176,6 +176,8 @@ const wxChar *wxFileSelectorPromptStr = _T("Select a file");
 const wxChar *wxFileSelectorDefaultWildcardStr = _T("*.*");
 const wxChar *wxInternalErrorStr = _T("wxWindows Internal Error");
 const wxChar *wxFatalErrorStr = _T("wxWindows Fatal Error");
+const wxChar *wxDirDialogNameStr = _T("wxDirCtrl");
+const wxChar *wxDirDialogDefaultFolderStr = _T("/");
 
 /* See wx/utils.h */
 const wxChar *wxFloatToStringStr = _T("%.2f");
index 52afe1decb102a4a042808caf1c734e2376c7d64..da2257c7391d6f075fe1d8f2f6d8ffd0bf4d9db3 100644 (file)
@@ -129,6 +129,8 @@ const char *wxFileSelectorPromptStr = "Select a file";
 const char *wxFileSelectorDefaultWildcardStr = "*.*";
 const char *wxInternalErrorStr = "wxWindows Internal Error";
 const char *wxFatalErrorStr = "wxWindows Fatal Error";
+const char *wxDirDialogNameStr = "wxDirCtrl";
+const char *wxDirDialogDefaultFolderStr = "/";
 
 // See wx/utils.h
 const char *wxFloatToStringStr = "%.2f";
index 1a2c5d78af53676021bed35560235bf5508ed5c9..c31731046f5f199746040d46088a69fc6d90c2f1 100644 (file)
@@ -135,7 +135,9 @@ wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]
 #else // Win16
 wxAcceleratorTable::wxAcceleratorTable(int WXUNUSED(n), const wxAcceleratorEntry WXUNUSED(entries)[])
 {
-    wxFAIL_MSG("not implemented");
+    // No, we simply gracefully degrade; we don't expect the
+    // developer to pepper their code with #ifdefs just for this.
+    // wxFAIL_MSG("not implemented");
 }
 #endif // Win32/16
 
index da26953b96c34a98831f13ad542134845519f566..596cd8ff0658cf85ece6c840d107271c1d039d86 100644 (file)
@@ -153,6 +153,8 @@ const wxChar *wxFileSelectorDefaultWildcardStr = _T("*.*");
 const wxChar *wxInternalErrorStr = _T("wxWindows Internal Error");
 const wxChar *wxFatalErrorStr = _T("wxWindows Fatal Error");
 const wxChar *wxTreeCtrlNameStr = _T("treeCtrl");
+const wxChar *wxDirDialogNameStr = _T("wxDirCtrl");
+const wxChar *wxDirDialogDefaultFolderStr = _T("/");
 
 // See wx/utils.h
 const wxChar *wxFloatToStringStr = _T("%.2f");
index fe32f3f1c9bad0efca71a8f54adc294d8be220fc..dfa1c710469990eaccf3491311d23df9a6180f12 100644 (file)
@@ -1,6 +1,6 @@
 
 
-# This file was automatically generated by tmake at 16:27, 1999/08/29
+# This file was automatically generated by tmake at 15:37, 1999/09/05
 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE B32.T!
 
 #
index e93b59d44d5193400ca9ddefe66040651368bc1a..0c5957ec31f76a917d153993a8596af445121d93 100644 (file)
@@ -735,7 +735,7 @@ cleanall: clean
 
 
 MFTYPE=bcc
-makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
-       cd $(WXWIN)\distrib\msw\tmake
-       tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
-       copy makefile.$(MFTYPE) $(WXWIN)\src\msw
+#makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
+#      cd $(WXWIN)\distrib\msw\tmake
+#      tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
+#      copy makefile.$(MFTYPE) $(WXWIN)\src\msw
index 78bdae7b2486f93107f930816c4439f7660f87f1..d8a9dedd87c986e9debf271c32f9c5b1c0d7cec6 100644 (file)
@@ -1,6 +1,6 @@
 
 
-# This file was automatically generated by tmake at 15:14, 1999/08/18
+# This file was automatically generated by tmake at 14:47, 1999/09/05
 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE DOS.T!
 
 #
@@ -101,6 +101,7 @@ COMMONOBJS = \
                $(COMMDIR)\dynarray.obj \
                $(COMMDIR)\dynlib.obj \
                $(COMMDIR)\event.obj \
+               $(COMMDIR)\extended.obj \
                $(COMMDIR)\ffile.obj \
                $(COMMDIR)\file.obj \
                $(COMMDIR)\fileconf.obj \
@@ -116,9 +117,6 @@ COMMONOBJS = \
                $(COMMDIR)\imagbmp.obj \
                $(COMMDIR)\image.obj \
                $(COMMDIR)\imaggif.obj \
-               $(COMMDIR)\imagjpeg.obj \
-               $(COMMDIR)\imagpcx.obj \
-               $(COMMDIR)\imagpnm.obj \
                $(COMMDIR)\intl.obj \
                $(COMMDIR)\ipcbase.obj \
                $(COMMDIR)\layout.obj \
@@ -132,7 +130,6 @@ COMMONOBJS = \
                $(COMMDIR)\odbc.obj \
                $(COMMDIR)\paper.obj \
                $(COMMDIR)\prntbase.obj \
-               $(COMMDIR)\process.obj \
                $(COMMDIR)\resource.obj \
                $(COMMDIR)\sizer.obj \
                $(COMMDIR)\strconv.obj \
@@ -146,6 +143,7 @@ COMMONOBJS = \
                $(COMMDIR)\timercmn.obj \
                $(COMMDIR)\tokenzr.obj \
                $(COMMDIR)\txtstrm.obj \
+               $(COMMDIR)\unzip.obj \
                $(COMMDIR)\utilscmn.obj \
                $(COMMDIR)\valgen.obj \
                $(COMMDIR)\validate.obj \
@@ -156,14 +154,8 @@ COMMONOBJS = \
                $(COMMDIR)\wxchar.obj \
                $(COMMDIR)\wxexpr.obj \
                $(COMMDIR)\zipstrm.obj \
-               $(COMMDIR)\extended.obj \
-               $(COMMDIR)\unzip.obj \
                $(COMMDIR)\zstream.obj
 
-# Won't compile
-#              $(COMMDIR)\imagpng.obj \
-#
-
 MSWOBJS = $(MSWDIR)\accel.obj \
                $(MSWDIR)\app.obj \
                $(MSWDIR)\bitmap.obj \
@@ -238,9 +230,6 @@ MSWOBJS = $(MSWDIR)\accel.obj \
                $(MSWDIR)\window.obj \
                $(MSWDIR)\xpmhand.obj
 
-# Won't compile
-#              $(MSWDIR)\pnghand.obj \
-#
 # TODO: Implement XPM and PNG targets in this makefile!
 #  $(OLEDIR)\xpmhand \
 #  $(OLEDIR)\pnghand \
@@ -832,26 +821,11 @@ $(COMMDIR)/imaggif.obj:     $*.$(SRCSUFF)
 $(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
 <<
 
-$(COMMDIR)/imagjpeg.obj:     $*.$(SRCSUFF)
-        cl @<<
-$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
-<<
-
-$(COMMDIR)/imagpcx.obj:     $*.$(SRCSUFF)
-        cl @<<
-$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
-<<
-
 $(COMMDIR)/imagpng.obj:     $*.$(SRCSUFF)
         cl @<<
 $(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
 <<
 
-$(COMMDIR)/imagpnm.obj:     $*.$(SRCSUFF)
-        cl @<<
-$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
-<<
-
 $(COMMDIR)/intl.obj:     $*.$(SRCSUFF)
         cl @<<
 $(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
@@ -917,11 +891,6 @@ $(COMMDIR)/prntbase.obj:     $*.$(SRCSUFF)
 $(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
 <<
 
-$(COMMDIR)/process.obj:     $*.$(SRCSUFF)
-        cl @<<
-$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
-<<
-
 $(COMMDIR)/resource.obj:     $*.$(SRCSUFF)
         cl @<<
 $(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
@@ -1238,7 +1207,8 @@ cleanall: clean
 
 
 MFTYPE=dos
-makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
-       cd $(WXWIN)\distrib\msw\tmake
-       tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
-       copy makefile.$(MFTYPE) $(WXWIN)\src\msw
+# Don't regenerate! We're out of sync for now.
+#makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
+#      cd $(WXWIN)\distrib\msw\tmake
+#      tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
+#      copy makefile.$(MFTYPE) $(WXWIN)\src\msw
index 4034697c85de70b43f341ba30998cf763537617c..b4fa85248ee4089920fb40b63b3f3c56ab81907b 100644 (file)
@@ -99,7 +99,11 @@ bool wxWindowsPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt
         return FALSE;
 
     printout->SetIsPreview(FALSE);
-    printout->OnPreparePrinting();
+
+    // 4/9/99, JACS: this is a silly place to allow preparation, considering
+    // the DC and no parameters have been set in the printout object.
+    // Moved further down.
+    // printout->OnPreparePrinting();
 
     // Get some parameters from the printout, if defined
     int fromPage, toPage;
@@ -186,6 +190,8 @@ bool wxWindowsPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt
     // Create an abort window
     wxBeginBusyCursor();
 
+    printout->OnPreparePrinting();
+
     wxWindow *win = CreateAbortWindow(parent, printout);
     wxYield();
 
index 0c566962daaa297275fc6a63c8fa264ee959fbdc..9363e5947ba5b8d52be2a66017254c9d82fe5473 100644 (file)
 #endif
 
 #include "wx/log.h"
+
+#ifdef __WIN32__
 #include "wx/process.h"
+#endif
 
 #include "wx/msw/private.h"
 
@@ -113,7 +116,6 @@ static DWORD wxExecuteThread(wxExecuteData *data)
 
     return 0;
 }
-#endif
 
 // window procedure of a hidden window which is created just to receive
 // the notification message when a process exits
@@ -146,6 +148,7 @@ LRESULT APIENTRY _EXPORT wxExecuteWindowCbk(HWND hWnd, UINT message,
 
     return 0;
 }
+#endif
 
 extern wxChar wxPanelClassName[];