]> git.saurik.com Git - wxWidgets.git/commitdiff
Added 'tardist' script for creating .tgz archives of wxWin; cured wxExecute
authorJulian Smart <julian@anthemion.co.uk>
Thu, 18 Feb 1999 14:55:34 +0000 (14:55 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 18 Feb 1999 14:55:34 +0000 (14:55 +0000)
crash on wxMotif; added wxHelpControllerBase::SetViewer; added consts to wxColour
== and != operators; changed beta version; fixed wxChoice/wxComboBox bugs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

34 files changed:
distrib/msw/bc.rsp
distrib/msw/generic.rsp
distrib/msw/gtk.rsp
distrib/msw/motif.rsp
distrib/msw/tardist [new file with mode: 0644]
docs/changes.txt
docs/latex/proplist/classes.tex
docs/latex/wx/helpinst.tex
docs/msw/bc_ide.txt
docs/msw/install.txt
docs/readme.txt
include/wx/generic/helpext.h
include/wx/gtk/colour.h
include/wx/gtk/mdi.h
include/wx/gtk1/colour.h
include/wx/gtk1/mdi.h
include/wx/helpbase.h
include/wx/motif/colour.h
include/wx/msw/colour.h
include/wx/prop.h
include/wx/stubs/colour.h
samples/help/demo.cpp
src/generic/helpext.cpp
src/gtk/colour.cpp
src/gtk/mdi.cpp
src/gtk1/colour.cpp
src/gtk1/mdi.cpp
src/motif/utilsexc.cpp
src/msw/choice.cpp
src/msw/combobox.cpp
src/msw/dummy.cpp
src/msw/helpwin.cpp
src/msw/makefile.vc
src/msw/window.cpp

index 638854604988d10e717769844326287a7ac382e9..5bfd4a99fa1efb3357f23222ecef183490c6f885 100644 (file)
@@ -1,2 +1,3 @@
 src/bc32.ide
+src/bc32d.ide
 samples/bc32.ide
index 80bc591f87b3b4a9015c78a718fbe05e88d3c919..6c9e2ab699f611f824c9e24ff488f0b2958f4b6f 100644 (file)
@@ -1,5 +1,7 @@
 distrib/msw/*.rsp
 distrib/msw/*.bat
+distrib/msw/tardist
+distrib/gtk/*
 
 docs/readme.txt
 docs/install.txt
index 14cfe7c01d1847219aa5b724202e5c2712d65fca..1186662289903e4ab6fa1c069a734860a14b297e 100644 (file)
@@ -19,6 +19,7 @@ docs/gtk/makewxgtk
 
 include/wx/gtk/*.h
 include/install-sh
+include/wx/install-sh
 
 src/Makefile
 src/Makefile.in
index 9af44964c0d0cfa22c8df7668dfc1302330114d6..a428eb0e79fb7110d840440b63050223b705a2cd 100644 (file)
@@ -44,6 +44,7 @@ src/iodbc/postgres/*.h
 
 include/wx/motif/*.h
 include/install-sh
+include/wx/install-sh
 
 docs/motif/*.txt
 docs/motif/makewxmotif
diff --git a/distrib/msw/tardist b/distrib/msw/tardist
new file mode 100644 (file)
index 0000000..faf359b
--- /dev/null
@@ -0,0 +1,100 @@
+#!/bin/sh
+# tardist: make up a tar.gz distribution of wxWindows 2
+# Supply a source (e.g. ~/wx2) and destination (e.g. ~/wx2/deliver)
+
+init=""
+if [ $1 = "" ]
+then
+  exit
+fi
+
+if [ $2 = "" ]
+then
+  exit
+fi
+
+echo About to archive wxWindows:
+echo   From   $1
+echo   To     $2
+echo CTRL-C if this is not correct.
+read dummy
+
+cd $1
+
+echo Removing backup files...
+rm *~ */*~ */*/*~ */*/*/*~ */*/*/*/*~
+
+rm -f $2/wxgtk.tar.gz
+rm -f $2/wxmotif.tar.gz
+rm -f $2/wxdocsrc.tar.gz
+rm -f $2/wxhtml.tar.gz
+rm -f $2/wxpdf.tar.gz
+rm -f $2/wxstubs.tar.gz
+rm -f $2/tex2rtf.tar.gz
+rm -f $2/ogl.tar.gz
+rm -f $2/wxtree.tar.gz
+rm -f $2/glcanvas.tar.gz
+
+echo Tarring...
+
+### wxGTK
+ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/gtk.rsp` > /tmp/wxgtk.txt
+tar cvf $2/wxgtk.tar -T /tmp/wxgtk.txt
+gzip $2/wxgtk.tar
+mv $2/wxgtk.tar.gz $2/wxgtk.tgz
+
+### wxMotif
+ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/motif.rsp` > /tmp/wxmotif.txt
+tar cvf $2/wxmotif.tar -T /tmp/wxmotif.txt
+gzip $2/wxmotif.tar
+mv $2/wxmotif.tar.gz $2/wxmotif.tgz
+
+### Doc sources
+ls `cat $1/distrib/msw/docsrc.rsp` > /tmp/docsrc.txt
+tar cvf $2/wxdocsrc.tar -T /tmp/docsrc.txt
+gzip $2/wxdocsrc.tar
+mv $2/wxdocsrc.tar.gz $2/wxdocsrc.tgz
+
+### HTML docs
+ls `cat $1/distrib/msw/wx_html.rsp` > /tmp/html.txt
+tar cvf $2/wxhtml.tar -T /tmp/html.txt
+gzip $2/wxhtml.tar
+mv $2/wxhtml.tar.gz $2/wxhtml.tgz
+
+### PDF docs
+ls `cat $1/distrib/msw/wx_pdf.rsp` > /tmp/pdf.txt
+tar cvf $2/wxpdf.tar -T /tmp/pdf.txt
+gzip $2/wxpdf.tar
+mv $2/wxpdf.tar.gz $2/wxpdf.tgz
+
+### Stubs files
+ls `cat $1/distrib/msw/stubs.rsp` > /tmp/stubs.txt
+tar cvf $2/wxstubs.tar -T /tmp/stubs.txt
+gzip $2/wxstubs.tar
+mv $2/wxstubs.tar.gz $2/wxstubs.tgz
+
+### Tex2RTF
+ls `cat $1/distrib/msw/tex2rtf.rsp` > /tmp/tex2rtf.txt
+tar cvf $2/tex2rtf.tar -T /tmp/tex2rtf.txt
+gzip $2/tex2rtf.tar
+mv $2/tex2rtf.tar.gz $2/tex2rtf.tgz
+
+### OGL
+ls `cat $1/distrib/msw/ogl.rsp` > /tmp/ogl.txt
+tar cvf $2/ogl.tar -T /tmp/ogl.txt
+gzip $2/ogl.tar
+mv $2/ogl.tar.gz $2/ogl.tgz
+
+### wxGLCanvas
+ls `cat $1/distrib/msw/glcanvas.rsp` > /tmp/glcanvas.txt
+tar cvf $2/glcanvas.tar -T /tmp/glcanvas.txt
+gzip $2/glcanvas.tar
+mv $2/glcanvas.tar.gz $2/glcanvas.tgz
+
+### wxTreeLayout
+ls `cat $1/distrib/msw/wxtree.rsp` > /tmp/wxtree.txt
+tar cvf $2/wxtree.tar -T /tmp/wxtree.txt
+gzip $2/wxtree.tar
+mv $2/wxtree.tar.gz $2/wxtree.tgz
+
+echo Done!
index bc1f9c511178ebd506287a06d095b8809f968637..962d29eb61043042ae60c45d51e7c2733026b089 100644 (file)
@@ -1,11 +1,12 @@
 wxWindows 2 Change Log
 ----------------------
 
-Beta 5, February ??  1999
+Beta 5, February 18  1999
 -------------------------
 
 wxGTK:
 
+- wxExecute improved.
 
 wxMSW:
 
@@ -14,12 +15,20 @@ wxMSW:
 - Changed VC++ makefiles (.vc) so that it's possible to have
   debug/release/DLL versions of the library available simultaneously,
   with names wx.lib, wx_d.lib, wx200.lib(dll), wx200_d.lib(dll).
+- Added BC++ 5 IDE files and instructions.
+- Fixed wxChoice, wxComboBox constructor bugs (m_noStrings initialisation).
 
 wxMotif:
 
+- Cured asynchronous wxExecute crash.
 
 General:
 
+- wxLocale documented.
+- Added include filenames to class reference.
+- wxHelpController API changed: SetBrowser becomes SetViewer,
+  DisplaySection works for WinHelp, help sample compiles under Windows
+  (though doesn't display help yet).
 
 Beta 4, February 12th 1999
 --------------------------
index 9b0b5aa11d49627a963faf7c94ca284b9700466e..00dcfe294a88f712c259948fb1e9d5c639d0a57f 100644 (file)
@@ -4,7 +4,6 @@
 
 \overview{Property classes overview}{propertyoverview}
 
-
 \section{\class{wxBoolFormValidator}: wxPropertyFormValidator}\label{wxboolformvalidator}
 
 \overview{Validator classes}{validatorclasses}
index cd7c69b1a63024cad55abcca312399b90a58e45d..1e1b5dea8764191d9d4e68dc563b82f7689396a8 100644 (file)
@@ -23,6 +23,7 @@ There are currently the following help controller classes defined:
 \item wxWinHelpController, for controlling Windows Help.
 \item wxExtHelpController, for controlling external browsers under Unix.
 The default browser is Netscape Navigator.
+\item wxXLPHelpController, for controlling wxHelp (from wxWindows 1).
 \end{itemize}
 
 \wxheading{Derived from}
@@ -35,7 +36,8 @@ wxHelpControllerBase\\
 <wx/help.h> (wxWindows chooses the appropriate help controller class)\\
 <wx/helpbase.h> (wxHelpControllerBase class)\\
 <wx/helpwin.h> (Windows Help controller)\\
-<wx/generic/helpext.h> (external browser controller)
+<wx/generic/helpext.h> (external HTML browser controller)
+<wx/generic/helpxlp.h> (wxHelp controller)
 
 \latexignore{\rtfignore{\wxheading{Members}}}
 
@@ -58,7 +60,7 @@ Destroys the help instance, closing down the viewer if it is running.
 \func{virtual void}{Initialize}{\param{const wxString\& }{file}, \param{int}{ server}}
 
 Initializes the help instance with a help filename, and optionally a server (socket)
-number. Does not invoke the help viewer.
+number if using wxHelp. Does not invoke the help viewer.
 This must be called directly after the help instance object is created and before
 any attempts to communicate with the viewer.
 
@@ -69,8 +71,12 @@ You may omit the file extension and a suitable one will be chosen.
 \func{virtual bool}{DisplayBlock}{\param{long}{ blockNo}}
 
 If the help viewer is not running, runs it and displays the file at the given block number.
-The interpretation of {\it blockNo} differs between help viewers. If using Windows Help, this
-refers to the context number. If wxHelp, this is the wxHelp block number.
+
+{\it wxHelp:} this is the wxHelp block number.
+
+{\it WinHelp:} Refers to the context number.
+
+{\it External HTML help:} the same as for \helpref{wxHelpController::DisplaySection}{wxhelpcontrollerdisplaysection}.
 
 \membersection{wxHelpController::DisplayContents}\label{wxhelpcontrollerdisplaycontents}
 
@@ -84,24 +90,38 @@ contents.
 \func{virtual bool}{DisplaySection}{\param{int}{ sectionNo}}
 
 If the help viewer is not running, runs it and displays the given section.
-Sections are numbered starting from 1.
 
-For wxHelp, section numbers may be viewed by running wxHelp in edit mode.
+{\it wxHelp:} Sections are numbered starting from 1. Section numbers may be viewed by running wxHelp in edit mode.
+
+{\it WinHelp:} {\it sectionNo} is a context id.
 
-DisplaySection does not apply to WinHelp.
+{\it External HTML help:} wxExtHelpController implements {\it sectionNo} as an id in a map file, which is of the form:
+
+\begin{verbatim}
+0  wx.html             ; Index
+1  wx34.html#classref  ; Class reference
+2  wx204.html          ; Function reference
+\end{verbatim}
 
 \membersection{wxHelpController::KeywordSearch}\label{wxhelpcontrollerkeywordsearch}
 
 \func{virtual bool}{KeywordSearch}{\param{const wxString\& }{keyWord}}
 
 If the help viewer is not running, runs it, and searches for sections matching the given keyword. If one
-match is found, the file is displayed at this section. If more than one
-match is found, the Search dialog is displayed with the matches (wxHelp)
-or the first topic is displayed (Windows Help).
+match is found, the file is displayed at this section.
+
+{\it wxHelp:} If more than one
+match is found, the Search dialog is displayed with the matches.
+
+{\it WinHelp:} If more than one match is found, 
+the first topic is displayed.
+
+{\it External HTML help:} If more than one match is found, 
+a choice of topics is displayed.
 
 \membersection{wxHelpController::LoadFile}\label{wxhelpcontrollerloadfile}
 
-\func{virtual bool}{LoadFile}{\param{const wxString\& }{file = NULL}}
+\func{virtual bool}{LoadFile}{\param{const wxString\& }{file = ""}}
 
 If the help viewer is not running, runs it and loads the given file.
 If the filename is not supplied or is
@@ -110,6 +130,19 @@ already displaying the specified file, it will not be reloaded. This
 member function may be used before each display call in case the user
 has opened another file.
 
+\membersection{wxHelpController::SetViewer}\label{wxhelpcontrollersetviewer}
+
+\func{virtual void}{SetViewer}{\param{const wxString\& }{viewer}, \param{long}{ flags}}
+
+Sets detailed viewer information. So far this is only relevant to wxExtHelpController.
+
+\wxheading{Parameters}
+
+\docparam{viewer}{This defaults to "netscape" for wxExtHelpController.}
+
+\docparam{flags}{This defaults to wxHELP\_NETSCAPE for wxExtHelpController, indicating
+that the viewer is a variant of Netscape Navigator.}
+
 \membersection{wxHelpController::OnQuit}\label{wxhelpcontrolleronquit}
 
 \func{virtual bool}{OnQuit}{\void}
index 067d7909497d4033f0041f2ab435a4391de20552..135384be7da1853b910f0d797364030c10c5f2de 100644 (file)
@@ -1,60 +1,30 @@
 Readme for wxWindows 2.0 Ide-files
+First release Feb. 1999, detlev@reymann-online.de
 
-First release Feb. 16. 1999, detlev@reymann-online.de
-
-1. What you can do with this IDE-files
+1. What you can do with this ide-files
 2. Where to install the files
 3. How to modify them for your own needs
-4. How to create IDE-files for your own wxWindows-programs
+4. How to create ide-files for your own wxWindows-programs
 
-1. What you can do with this IDE-files
+1. What you can do with this ide-files
 ======================================
-
-There are two IDE-files. One IDE-file should help you to create
-the wxWindows library from within the Ide of Borlands C++, v.
-5.x. The other one should help you to create most of the samples
-of wxWindows the same way.
+There are three ide-files. One ide-file should help you to create the wxWindows libraries from within the Ide of Borlands C++, v. 5.x. The second is called bc32d.ide and produces the debug-version of the wxWindows-library.
+If you want to produce the debugging-version, using the special ide-file bc32d.ide you have to create a seperate subdirectory \WXWIN_PATH\src\debug.
+The last one should help you to create most of the samples of wxWindows.
 
 2. Where to install the files
 =============================
-
-You should copy the file named wxwin32_lib.IDE to the
-src-directory of your wxWindows-Installation (e.g. C:\wxwin\src).
-And the other file samples.IDE should be copied into the
-samples-directory (e.g. C:\wxwin\samples).
+You should copy the files for the libraries into the src-directory of your wxWindows-Installation (e.g. C:\wxwin\src).
+And the other file for the samples should be copied into the samples-directory (e.g. C:\wxwin\samples).
 
 3. How to modify them for your own needs
 ========================================
+If your wxWindows-Installation resides on the same drive as your Borland-Compiler and additionally the Borland-Installation is the default (e.g. C:\BC5) then there should be no need to change anything.
+Otherwise please change the path from within the ide (Options->project->directories). Because we use the $inherit-makro (Julian foung the trick), this should do the trick.
 
-If your wxWindows-Installation resIDEs on the same drive as your
-Borland-Compiler and additionally the Borland-Installation is
-the default (e.g. C:\BC5) then there should be no need to change
-anything. Otherwise please change the path from within the IDE
-(Options->project->directories). This should be very easy for
-the library-file. For the samples-file it can be neccessary to
-change the settings for all programms seperately, because there
-are local options for each of them. To do that, show the project
-so that you can see the list with all the programs, right-click
-onto each of them and choose local options. Then change the
-directory-names.
-
-4. How to create IDE-files for your own wxWindows-programs
+4. How to create ide-files for your own wxWindows-programs
 ==========================================================
-
-I think you are familiar with the necessary options for your own
-program. So I will only describe what is neccessary to link
-yout programm with the wxWindows-library. If you want to create
-a IDE-file for your own wxWindows-program, create a new project
-from the menu file->new->project. Deactivate all the
-standard-options, the only two things that should be activated is
-"static" for the libraries, if you want to use the library
-produced with the library-IDE and the checkbox OLE (You can
-leave this checkbox unchecked, but then you have to add the
-library \bc5\lib\ole2w32.lib to your project). You have to add
-the include-path of wxWindows to the include-path in the
-options-dialog (options->project->directories->include). The
-result should be something like:
-path_of_my_program;\bc5\include;\wxwin2\include; Then you have
-to add the libraries to the project. Open the project-view and
-activate your programm. Then right-click and choose "add" and
-select the wxWindows-library (e.g. \wxwin\lib\wx32.lib).
\ No newline at end of file
+I think you are familiar with the necessary options for your own programm. So I will only describe what is neccessary to link yout programm with the wxWindows-library. If you want to create a ide-file for your own wxWindows-program, create a new project from the menu file->new->project. Deactivate all the standard-options, the only two thing that should be aktivated is "static" for the libraries, if you want to use the library produced with the library-ide and the checkbox OLE (You can leave this checkbox unchecked, but then you have to add the library \bc5\lib\ole2w32.lib to your project). You have to add the include-path of wxWindows to the include-path in the options-dialog (options->project->directories->include). The result should be something like:
+path_of_my_program;\bc5\include;\wxwin2\include;
+Then you have to add the libraries to the project.
+Open the project-view and activate your programm. Then right-click and choose "add" and select the wxWindows-library (e.g. \wxwin\lib\wx32.lib).
\ No newline at end of file
index 051643dd94462c31de3558c60aa85278ad4c45ac..279b02954ec9c8b0a32792789294ade141964dbf 100644 (file)
@@ -26,6 +26,7 @@ wx200pdf.zip            Acrobat PDF documentation
 wx200htm.zip            HTML documentation
 wx200vc.zip             MS VC++ 5.0 project files
 wx200cw.zip             Metrowerks CodeWarrior project files
+wx200bc.zip             BC++ 5 project files
 
 Unarchive the required files plus any optional documentation
 files into a suitable directory such as c:\wx.
@@ -175,15 +176,22 @@ off in this mode. See issues.txt for details.
 
 Compiling using the IDE files:
 
-1. Load src\wxwin32_lib.ide.
+1. Load src\bc32.ide (or src\bc32d.ide for a debugging version).
 2. Go to Options|Project... and specify the correct BC++ include and lib path for
    your file structure.
 3. Press F9 to compile the wxWindows library.
-4. Load samples\samples.ide.
+4. Load samples\bc32.ide.
 5. Go to Options|Project... and specify the correct BC++ include and lib path for
    your file structure.
 6. Press F9 to compile the samples.
 
+Note that to make the png, xpm and zlib libraries (needed for
+some samples) you need to compile with bc32.ide. bc32d.ide only
+makes the wxWindows library (lib\wx32d.lib).
+
+The debug version of the wxWindows library is about 37 MB, and the
+release version is around 3 MB.
+
 See also the file bc_ide.txt for further instructions and details
 of how to create your own project files.
 
@@ -216,10 +224,8 @@ Metrowerks CodeWarrior compilation
 
 NOTES:
 
-(a) Unfortunately CodeWarrior support is broken in this
-    release. Stefan Csomor (csomor@advancedconcepts.ch) will rectify this shortly.
-(b) You need CodeWarrior Pro 4 plus the patches to 4.1 from the
-    Metrowerks Web site.
+You need CodeWarrior Pro 4 plus the patches to 4.1 from the
+Metrowerks Web site.
 
 Symantec C++ compilation
 ------------------------
index 619896c0faaf24459c83b5880b1bdaea5344e9f4..81a846c40bae53b5923aba22caccc37fa3dbbc66 100644 (file)
@@ -1,4 +1,4 @@
-wxWindows 2 beta 4
+wxWindows 2 beta 5
 ------------------
 
 Welcome to wxWindows 2, a sophisticated cross-platform C++
@@ -46,8 +46,9 @@ wx200doc.zip            Documentation source code (not required)
 wx200hlp.zip            WinHelp documentation
 wx200pdf.zip            Acrobat PDF documentation
 wx200htm.zip            HTML documentation
-wx200vc.zip             MS VC++ 5.0 project files
-wx200cw.zip             Metrowerks CodeWarrior project files
+wx200vc.zip             MS VC++ 5/6 project files
+wx200bc.zip             Borland C++ 5 project files
+wx200cw.zip             Metrowerks CodeWarrior 4.1 project files
 
 Installation
 ------------
index 32033dea06dc0362fff860f68cf83007a03f6361..d0b9cdda3b4288ad10c2fc5a5a362099ffcec069 100644 (file)
@@ -27,7 +27,6 @@
 /// Is browser a netscape browser?
 #define   WXEXTHELP_ENVVAR_BROWSERISNETSCAPE "WX_HELPBROWSER_NS"
 
-
 /**
    This class implements help via an external browser.
    It requires the name of a directory containing the documentation
@@ -61,8 +60,13 @@ DECLARE_CLASS(wxExtHelpController)
        @param browsername The command to call a browser/html viewer.
        @param isNetscape Set this to TRUE if the browser is some variant of Netscape.
    */
+   // Obsolete form
    void SetBrowser(wxString const & browsername = WXEXTHELP_DEFAULTBROWSER,
                    bool isNetscape = WXEXTHELP_DEFAULTBROWSER_IS_NETSCAPE);
+
+  // Set viewer: new name for SetBrowser
+  virtual void SetViewer(const wxString& viewer = WXEXTHELP_DEFAULTBROWSER, long flags = wxHELP_NETSCAPE);
+
  private:
    /// How to call the html viewer.
    wxString         m_BrowserName;
index 9a6503eb418cdac055c277cf00c2caab1e3b5be7..8d27d3f3b2ad32f7cd08f9166749b76d3867c174 100644 (file)
@@ -58,8 +58,8 @@ public:
   ~wxColour();
 
   // comparison
-  bool operator == ( const wxColour& col );
-  bool operator != ( const wxColour& col );
+  bool operator == ( const wxColour& col ) const;
+  bool operator != ( const wxColour& col ) const;
 
   // accessors
   void Set( unsigned char red, unsigned char green, unsigned char blue );
index 3357143d0a29756441ad94836120a37e89fe4d50..cde7a8983d0c83247485a4316d6ab80f124a7f95 100644 (file)
@@ -116,7 +116,7 @@ class wxMDIChildFrame: public wxFrame
       long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr );
       
   virtual void SetMenuBar( wxMenuBar *menu_bar );
-  virtual wxMenuBar *GetMenuBar();
+  virtual wxMenuBar *GetMenuBar() const;
 
   virtual void GetClientSize( int *width, int *height ) const;
   virtual void AddChild( wxWindow *child );
index 9a6503eb418cdac055c277cf00c2caab1e3b5be7..8d27d3f3b2ad32f7cd08f9166749b76d3867c174 100644 (file)
@@ -58,8 +58,8 @@ public:
   ~wxColour();
 
   // comparison
-  bool operator == ( const wxColour& col );
-  bool operator != ( const wxColour& col );
+  bool operator == ( const wxColour& col ) const;
+  bool operator != ( const wxColour& col ) const;
 
   // accessors
   void Set( unsigned char red, unsigned char green, unsigned char blue );
index 3357143d0a29756441ad94836120a37e89fe4d50..cde7a8983d0c83247485a4316d6ab80f124a7f95 100644 (file)
@@ -116,7 +116,7 @@ class wxMDIChildFrame: public wxFrame
       long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr );
       
   virtual void SetMenuBar( wxMenuBar *menu_bar );
-  virtual wxMenuBar *GetMenuBar();
+  virtual wxMenuBar *GetMenuBar() const;
 
   virtual void GetClientSize( int *width, int *height ) const;
   virtual void AddChild( wxWindow *child );
index 830925e80d1df4cd8bb8404c8e09a823f312ffca..b93771f8064d14bbbe22f2602b3f0be8b298a578 100644 (file)
@@ -20,6 +20,9 @@
 
 #if wxUSE_HELP
 
+// Flags for SetViewer
+#define wxHELP_NETSCAPE     1
+
 // Defines the API for help controllers
 class WXDLLEXPORT wxHelpControllerBase: public wxObject
 {
@@ -35,6 +38,9 @@ class WXDLLEXPORT wxHelpControllerBase: public wxObject
   virtual bool Initialize(const wxString& WXUNUSED(file), int WXUNUSED(server) ) { return FALSE; };
   virtual bool Initialize(const wxString& file) = 0;
 
+  // Set viewer: only relevant to some kinds of controller
+  virtual void SetViewer(const wxString& WXUNUSED(viewer), long WXUNUSED(flags) = 0) {}
+
   // If file is "", reloads file given  in Initialize
   virtual bool LoadFile(const wxString& file = "") = 0;
   virtual bool DisplayContents(void) = 0;
index 893cd7afa2e75958b1a60e3979597dbb71b5a8a3..238d46cfe13287ee364f705dbd92b0e2eeecb0f2 100644 (file)
@@ -62,9 +62,9 @@ public:
   int GetPixel() const { return m_pixel; };
   void SetPixel(int pixel) { m_pixel = pixel; m_isInit = TRUE; };
 
-  inline bool operator == (const wxColour& colour) { return (m_red == colour.m_red && m_green == colour.m_green && m_blue == colour.m_blue); }
+  inline bool operator == (const wxColour& colour) const { return (m_red == colour.m_red && m_green == colour.m_green && m_blue == colour.m_blue); }
 
-  inline bool operator != (const wxColour& colour) { return (!(m_red == colour.m_red && m_green == colour.m_green && m_blue == colour.m_blue)); }
+  inline bool operator != (const wxColour& colour) const { return (!(m_red == colour.m_red && m_green == colour.m_green && m_blue == colour.m_blue)); }
 
   // Allocate a colour, or nearest colour, using the given display.
   // If realloc is TRUE, ignore the existing pixel, otherwise just return
index 52f15ed96fb825f8ea9ff3e15a7daf00bd6a281d..0c3def29846bab5669cca887b3b348b3e3b384e6 100644 (file)
@@ -64,13 +64,13 @@ public:
   unsigned char Blue() const { return m_blue; }
 
   // comparison
-  bool operator == (const wxColour& colour)
+  bool operator == (const wxColour& colour) const
   {
     return (m_red == colour.m_red &&
             m_green == colour.m_green &&
             m_blue == colour.m_blue);
   }
-  bool operator != (const wxColour& colour) { return !(*this == colour); }
+  bool operator != (const wxColour& colour) const { return !(*this == colour); }
 
   WXCOLORREF GetPixel() const { return m_pixel; };
 
index 8471c8b0a62f6825993cf1e37ac437e6df7732b5..c933e4e72d08bcb7364fbe508b357e8d30af2d08 100644 (file)
@@ -112,9 +112,11 @@ class WXDLLEXPORT wxPropertyView: public wxEvtHandler
   inline virtual void SetPropertySheet(wxPropertySheet *sheet) { m_propertySheet = sheet; }
   inline virtual wxPropertySheet *GetPropertySheet(void) const { return m_propertySheet; }
 
+/*
   virtual void OnOk(void) {};
   virtual void OnCancel(void) {};
   virtual void OnHelp(void) {};
+*/
 
   inline virtual bool OnClose(void) { return FALSE; }
   inline long GetFlags(void) { return m_buttonFlags; }
index 16ffdac9aad515ddaba442f7dc90fb337c7dba9b..24028b6756baf4926821d96666acaa1ccc8a9062 100644 (file)
@@ -64,13 +64,13 @@ public:
   unsigned char Blue() const { return m_blue; }
 
   // comparison
-  bool operator == (const wxColour& colour)
+  bool operator == (const wxColour& colour) const
   {
     return (m_red == colour.m_red && 
             m_green == colour.m_green && 
             m_blue == colour.m_blue);
   }
-  bool operator != (const wxColour& colour) { return !(*this == colour); }
+  bool operator != (const wxColour& colour) const { return !(*this == colour); }
 
   void InitFromName(const wxString& col);
 
index 01e9b6fbcacd360f0a43a620fc1ec1f0975a13c7..1980c9f2652ce2d03d342959bbc348d8809be24b 100644 (file)
@@ -1,12 +1,12 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        minimal.cpp
-// Purpose:     Minimal wxWindows sample
-// Author:      Julian Smart
+// Name:        demo.cpp
+// Purpose:     wxHelpController demo
+// Author:      Karsten Ballueder
 // Modified by:
 // Created:     04/01/98
 // RCS-ID:      $Id$
-// Copyright:   (c) Julian Smart and Markus Holzem
-// Licence:     wxWindows license
+// Copyright:   (c) Karsten Ballueder, Julian Smart
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 // ============================================================================
@@ -17,8 +17,8 @@
 // headers
 // ----------------------------------------------------------------------------
 #ifdef __GNUG__
-    #pragma implementation "minimal.cpp"
-    #pragma interface "minimal.cpp"
+    #pragma implementation "demo.cpp"
+    #pragma interface "demo.cpp"
 #endif
 
 // For compilers that support precompilation, includes "wx/wx.h".
@@ -87,17 +87,17 @@ private:
 enum
 {
     // menu items
-    Minimal_Quit = 1,
-    Minimal_Help_Index,
-    Minimal_Help_Classes,
-    Minimal_Help_Functions,
-    Minimal_Help_Help,
-    Minimal_Help_KDE,
-    Minimal_Help_GNOME,
-    Minimal_Help_Netscape,
-    Minimal_Help_Search,
+    HelpDemo_Quit = 1,
+    HelpDemo_Help_Index,
+    HelpDemo_Help_Classes,
+    HelpDemo_Help_Functions,
+    HelpDemo_Help_Help,
+    HelpDemo_Help_KDE,
+    HelpDemo_Help_GNOME,
+    HelpDemo_Help_Netscape,
+    HelpDemo_Help_Search,
     // controls start here (the numbers are, of course, arbitrary)
-    Minimal_Text = 1000,
+    HelpDemo_Text = 1000,
 };
 
 // ----------------------------------------------------------------------------
@@ -108,15 +108,15 @@ enum
 // handlers) which process them. It can be also done at run-time, but for the
 // simple menu events like this the static method is much simpler.
 BEGIN_EVENT_TABLE(MyFrame, wxFrame)
-    EVT_MENU(Minimal_Quit,  MyFrame::OnQuit)
-    EVT_MENU(Minimal_Help_Index, MyFrame::OnHelp)
-    EVT_MENU(Minimal_Help_Classes, MyFrame::OnHelp)
-    EVT_MENU(Minimal_Help_Functions, MyFrame::OnHelp)
-    EVT_MENU(Minimal_Help_Help, MyFrame::OnHelp)
-    EVT_MENU(Minimal_Help_KDE, MyFrame::OnHelp)
-    EVT_MENU(Minimal_Help_GNOME, MyFrame::OnHelp)
-    EVT_MENU(Minimal_Help_Netscape, MyFrame::OnHelp)
-    EVT_MENU(Minimal_Help_Search, MyFrame::OnHelp)
+    EVT_MENU(HelpDemo_Quit,  MyFrame::OnQuit)
+    EVT_MENU(HelpDemo_Help_Index, MyFrame::OnHelp)
+    EVT_MENU(HelpDemo_Help_Classes, MyFrame::OnHelp)
+    EVT_MENU(HelpDemo_Help_Functions, MyFrame::OnHelp)
+    EVT_MENU(HelpDemo_Help_Help, MyFrame::OnHelp)
+    EVT_MENU(HelpDemo_Help_KDE, MyFrame::OnHelp)
+    EVT_MENU(HelpDemo_Help_GNOME, MyFrame::OnHelp)
+    EVT_MENU(HelpDemo_Help_Netscape, MyFrame::OnHelp)
+    EVT_MENU(HelpDemo_Help_Search, MyFrame::OnHelp)
 END_EVENT_TABLE()
 
 // Create a new application object: this macro will allow wxWindows to create
@@ -138,11 +138,9 @@ IMPLEMENT_APP(MyApp)
 bool MyApp::OnInit()
 {
     // Create the main application window
-    MyFrame *frame = new MyFrame("Minimal wxWindows App",
+    MyFrame *frame = new MyFrame("HelpDemo wxWindows App",
                                  wxPoint(50, 50), wxSize(450, 340));
 
-    // Show it and tell the application that it's our main window
-    // @@@ what does it do exactly, in fact? is it necessary here?
     frame->Show(TRUE);
     SetTopWindow(frame);
 
@@ -166,21 +164,20 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
     // create a menu bar
     wxMenu *menuFile = new wxMenu;
 
-    menuFile->Append(Minimal_Help_Index, "&Help Index...");
-    menuFile->Append(Minimal_Help_Classes, "&Help on Classes...");
-    menuFile->Append(Minimal_Help_Functions, "&Help on Functions...");
-    menuFile->Append(Minimal_Help_Help, "&About wxExtHelpController...");
+    menuFile->Append(HelpDemo_Help_Index, "&Help Index...");
+    menuFile->Append(HelpDemo_Help_Classes, "&Help on Classes...");
+    menuFile->Append(HelpDemo_Help_Functions, "&Help on Functions...");
+    menuFile->Append(HelpDemo_Help_Help, "&About Help Demo...");
     menuFile->AppendSeparator();
-    menuFile->Append(Minimal_Help_Search, "&Search help...");
-    if(help.IsKindOf(CLASSINFO(wxExtHelpController)))
-       {
-          menuFile->AppendSeparator();
-          menuFile->Append(Minimal_Help_KDE, "Use &KDE");
-          menuFile->Append(Minimal_Help_GNOME, "Use &GNOME");
-          menuFile->Append(Minimal_Help_Netscape, "Use &Netscape");
-       }
+    menuFile->Append(HelpDemo_Help_Search, "&Search help...");
+#ifdef __WXGTK__
     menuFile->AppendSeparator();
-    menuFile->Append(Minimal_Quit, "E&xit");
+    menuFile->Append(HelpDemo_Help_KDE, "Use &KDE");
+    menuFile->Append(HelpDemo_Help_GNOME, "Use &GNOME");
+    menuFile->Append(HelpDemo_Help_Netscape, "Use &Netscape");
+#endif
+    menuFile->AppendSeparator();
+    menuFile->Append(HelpDemo_Quit, "E&xit");
 
     // now append the freshly created menu to the menu bar...
     wxMenuBar *menuBar = new wxMenuBar;
@@ -220,28 +217,33 @@ void MyFrame::OnHelp(wxCommandEvent& event)
 {
    switch(event.GetId())
    {
-   case Minimal_Help_Classes:
+
+   // Note: these DisplaySection calls use ids that are specific to wxExtHelpController
+   // (on Unix). For WinHelp, we'd need to use different context ids.
+
+   case HelpDemo_Help_Classes:
       help.DisplaySection(1);
       break;
-   case Minimal_Help_Functions:
+   case HelpDemo_Help_Functions:
       help.DisplaySection(2);
       break;
-   case Minimal_Help_Help:
+   case HelpDemo_Help_Help:
       help.DisplaySection(5);
       break;
-   case Minimal_Help_KDE:
-      if(help.IsKindOf(CLASSINFO(wxExtHelpController)))
-         ((wxExtHelpController *)&help)->SetBrowser("kdehelp");
+
+   // These three calls are only used by wxExtHelpController
+
+   case HelpDemo_Help_KDE:
+      help.SetViewer("kdehelp");
       break;
-   case Minimal_Help_GNOME:
-      if(help.IsKindOf(CLASSINFO(wxExtHelpController)))
-         ((wxExtHelpController *)&help)->SetBrowser("gnome-help-browser");
+   case HelpDemo_Help_GNOME:
+      help.SetViewer("gnome-help-browser");
       break;
-   case Minimal_Help_Netscape:
-      if(help.IsKindOf(CLASSINFO(wxExtHelpController)))
-         ((wxExtHelpController *)&help)->SetBrowser("netscape",TRUE);
+   case HelpDemo_Help_Netscape:
+      help.SetViewer("netscape", wxHELP_NETSCAPE);
       break;
-   case Minimal_Help_Search:
+
+   case HelpDemo_Help_Search:
    {
       wxString key = wxGetTextFromUser("Search for?",
                                        "Search help for keyword",
@@ -251,9 +253,10 @@ void MyFrame::OnHelp(wxCommandEvent& event)
          help.KeywordSearch(key);
    }
    break;
-   case Minimal_Help_Index:
+   case HelpDemo_Help_Index:
    default:
       help.DisplayContents();
       break;
    }
 }
+
index 80e91ebdc4864ae4efcfcf748105ec6247f00c58..c2a7f14224c6c8a1334b4b63a25cbf0e7502ecaf 100644 (file)
@@ -50,6 +50,12 @@ wxExtHelpController::SetBrowser(wxString const & browsername, bool isNetscape)
    m_BrowserIsNetscape = isNetscape;
 }
 
+// Set viewer: new, generic name for SetBrowser
+void wxExtHelpController::SetViewer(const wxString& viewer, long flags)
+{
+    SetBrowser(viewer, ((flags & wxHELP_NETSCAPE) == wxHELP_NETSCAPE));
+}
+
 bool
 wxExtHelpController::DisplayHelp(wxString const &relativeURL)
 {
index 88a76bba564dc470c4a8969acfa77d8bbc0b9a47..72104a8843c05eb3c7f05642538911bea091c6f0 100644 (file)
@@ -116,12 +116,12 @@ wxColour& wxColour::operator = ( const wxColour& col )
     return *this;
 }
 
-bool wxColour::operator == ( const wxColour& col )
+bool wxColour::operator == ( const wxColour& col ) const
 {
     return m_refData == col.m_refData;
 }
 
-bool wxColour::operator != ( const wxColour& col)
+bool wxColour::operator != ( const wxColour& col) const
 {
     return m_refData != col.m_refData;
 }
index e301b4513dbdc3350d68fe3851f2ae31a77e0ba1..edfdec564143420682eec53ae1560a36883f72fb 100644 (file)
@@ -298,7 +298,7 @@ void wxMDIChildFrame::SetMenuBar( wxMenuBar *menu_bar )
     }
 }
 
-wxMenuBar *wxMDIChildFrame::GetMenuBar()
+wxMenuBar *wxMDIChildFrame::GetMenuBar() const
 {
     return m_menuBar;
 }
index 88a76bba564dc470c4a8969acfa77d8bbc0b9a47..72104a8843c05eb3c7f05642538911bea091c6f0 100644 (file)
@@ -116,12 +116,12 @@ wxColour& wxColour::operator = ( const wxColour& col )
     return *this;
 }
 
-bool wxColour::operator == ( const wxColour& col )
+bool wxColour::operator == ( const wxColour& col ) const
 {
     return m_refData == col.m_refData;
 }
 
-bool wxColour::operator != ( const wxColour& col)
+bool wxColour::operator != ( const wxColour& col) const
 {
     return m_refData != col.m_refData;
 }
index e301b4513dbdc3350d68fe3851f2ae31a77e0ba1..edfdec564143420682eec53ae1560a36883f72fb 100644 (file)
@@ -298,7 +298,7 @@ void wxMDIChildFrame::SetMenuBar( wxMenuBar *menu_bar )
     }
 }
 
-wxMenuBar *wxMDIChildFrame::GetMenuBar()
+wxMenuBar *wxMDIChildFrame::GetMenuBar() const
 {
     return m_menuBar;
 }
index a088203fd0533c01b79766d7d9a24c063a493292..82a89b652a8b81f6f1046784239b4efe118b599f 100644 (file)
@@ -165,6 +165,8 @@ long wxExecute(char **argv, bool sync, wxProcess *handler)
             printf ("wxWindows: could not execute '%s'\n", *argv);
             _exit (-1);
     }
+    if (!sync)
+      return pid;
     
     wxLocalProcessData *process_data = new wxLocalProcessData;
     
@@ -178,15 +180,13 @@ long wxExecute(char **argv, bool sync, wxProcess *handler)
         (XtInputCallbackProc) xt_notify_end_process,
         (XtPointer) process_data);
     
-    if (sync) {
-        while (!process_data->end_process)
-            XtAppProcessEvent((XtAppContext) wxTheApp->GetAppContext(), XtIMAll);
+    while (!process_data->end_process)
+        XtAppProcessEvent((XtAppContext) wxTheApp->GetAppContext(), XtIMAll);
         
-        if (WIFEXITED(process_data->end_process) != 0)
-        {
-            delete process_data;
-            return WEXITSTATUS(process_data->end_process);
-        }
+    if (WIFEXITED(process_data->end_process) != 0)
+    {
+        delete process_data;
+        return WEXITSTATUS(process_data->end_process);
     }
     
     delete process_data;
index 4bba2263d7e1711c595c84382e3b827fa2eb65a5..a31cd8a3663c9c142df7e3f0359e24b0b2ceb788 100644 (file)
@@ -59,7 +59,7 @@ bool wxChoice::Create(wxWindow *parent, wxWindowID id,
   if (parent) parent->AddChild(this);
   SetBackgroundColour(parent->GetBackgroundColour()) ;
   SetForegroundColour(parent->GetForegroundColour()) ;
-  m_noStrings = n;
+  m_noStrings = 0;
 
   m_windowStyle = style;
 
index ab5eb3ef41bd008176f15ee94a7d623afa564aa1..aec17db23d093e164b8ee0bfde052427a80b2456 100644 (file)
@@ -72,7 +72,7 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
   if (parent) parent->AddChild(this);
   SetBackgroundColour(parent->GetBackgroundColour()) ;
   SetForegroundColour(parent->GetForegroundColour()) ;
-  m_noStrings = n;
+  m_noStrings = 0;
 
   m_windowStyle = style;
 
index dda57b7e3b3a0757f37f57c511e1bbc27f49568c..4b5d3141e873ee9af2452fe6b848ac19330445aa 100644 (file)
     char wxDummyChar = 0;
 #endif
 
-// if wxWindows is in the DLL link our entry point with the application
-// N.B. see include/wx/app.h, we're now putting this in IMPLEMENT_APP so we
-// don't have to link our apps with dummy.obj.
-
-#if 0 // defined(WXUSINGDLL)
-
-// NT defines APIENTRY, 3.x not
-#if !defined(APIENTRY)
-    #define APIENTRY FAR PASCAL
-#endif
-
-int
-#ifdef __WATCOMC__
-    PASCAL
-#else
-    APIENTRY
-#endif
-WinMain(HINSTANCE hInstance,
-        HINSTANCE hPrevInstance,
-        LPSTR m_lpCmdLine,
-        int nCmdShow )
-{
-#if !WXUSINGDLL
-    wxCrtSetDbgFlag(_CRTDBG_LEAK_CHECK_DF);
-#endif
-
-    return wxEntry((WXHINSTANCE) hInstance, (WXHINSTANCE) hPrevInstance,
-                   m_lpCmdLine, nCmdShow);
-}
-#endif
-
-
index 068165f21edd5d773fbc90ff568a5c75331a2bfc..eb74f4960c209c373013c12b81d19c4ae27148a9 100644 (file)
@@ -70,17 +70,17 @@ bool wxWinHelpController::DisplayContents(void)
 {
     if (m_helpFile == "") return FALSE;
 
-    char buf[_MAXPATHLEN];
-    strcpy(buf, (const char*) m_helpFile);
-    size_t len = strlen(buf);
-    if (!(buf[len-1] == 'p' && buf[len-2] == 'l' && buf[len-3] == 'h' && buf[len-4] == '.'))
-      strcat(buf, ".hlp");
+    wxString str = m_helpFile;
+    size_t len = str.Length();
+    if (!(str[(size_t)(len-1)] == 'p' && str[(size_t)(len-2)] == 'l' && str[(size_t)(len-3)] == 'h' && str[(size_t)(len-4)] == '.'))
+      str += ".hlp";
+
     if (wxTheApp->GetTopWindow())
     {
 #if defined(__WIN95__)
-      WinHelp((HWND) wxTheApp->GetTopWindow()->GetHWND(), buf, HELP_FINDER, 0L);
+      WinHelp((HWND) wxTheApp->GetTopWindow()->GetHWND(), (const char*) str, HELP_FINDER, 0L);
 #else
-      WinHelp((HWND) wxTheApp->GetTopWindow()->GetHWND(), buf, HELP_CONTENTS, 0L);
+      WinHelp((HWND) wxTheApp->GetTopWindow()->GetHWND(), (const char*) str, HELP_CONTENTS, 0L);
 #endif
      return TRUE;
     }
@@ -89,8 +89,20 @@ bool wxWinHelpController::DisplayContents(void)
 
 bool wxWinHelpController::DisplaySection(int section)
 {
-  // No WinHelp equivalent for this
-  return FALSE;
+    // Use context number
+    if (m_helpFile == "") return FALSE;
+
+    wxString str = m_helpFile;
+    size_t len = str.Length();
+    if (!(str[(size_t)(len-1)] == 'p' && str[(size_t)(len-2)] == 'l' && str[(size_t)(len-3)] == 'h' && str[(size_t)(len-4)] == '.'))
+      str += ".hlp";
+
+    if (wxTheApp->GetTopWindow())
+       {
+      WinHelp((HWND) wxTheApp->GetTopWindow()->GetHWND(), (const char*) str, HELP_CONTEXT, (DWORD)section);
+      return TRUE;
+       }
+    return FALSE;
 }
 
 bool wxWinHelpController::DisplayBlock(long block)
@@ -98,14 +110,14 @@ bool wxWinHelpController::DisplayBlock(long block)
     // Use context number -- a very rough equivalent to block id!
     if (m_helpFile == "") return FALSE;
 
-    char buf[_MAXPATHLEN];
-    strcpy(buf, m_helpFile);
-    size_t len = strlen(buf);
-    if (!(buf[len-1] == 'p' && buf[len-2] == 'l' && buf[len-3] == 'h' && buf[len-4] == '.'))
-      strcat(buf, ".hlp");
+    wxString str = m_helpFile;
+    size_t len = str.Length();
+    if (!(str[(size_t)(len-1)] == 'p' && str[(size_t)(len-2)] == 'l' && str[(size_t)(len-3)] == 'h' && str[(size_t)(len-4)] == '.'))
+      str += ".hlp";
+
     if (wxTheApp->GetTopWindow())
        {
-      WinHelp((HWND) wxTheApp->GetTopWindow()->GetHWND(), buf, HELP_CONTEXT, (DWORD)block);
+      WinHelp((HWND) wxTheApp->GetTopWindow()->GetHWND(), (const char*) str, HELP_CONTEXT, (DWORD)block);
       return TRUE;
        }
     return FALSE;
@@ -115,14 +127,14 @@ bool wxWinHelpController::KeywordSearch(const wxString& k)
 {
     if (m_helpFile == "") return FALSE;
 
-    char buf[_MAXPATHLEN];
-    strcpy(buf, m_helpFile);
-    size_t len = strlen(buf);
-    if (!(buf[len-1] == 'p' && buf[len-2] == 'l' && buf[len-3] == 'h' && buf[len-4] == '.'))
-      strcat(buf, ".hlp");
+    wxString str = m_helpFile;
+    size_t len = str.Length();
+    if (!(str[(size_t)(len-1)] == 'p' && str[(size_t)(len-2)] == 'l' && str[(size_t)(len-3)] == 'h' && str[(size_t)(len-4)] == '.'))
+      str += ".hlp";
+
     if (wxTheApp->GetTopWindow())
     {
-      WinHelp((HWND) wxTheApp->GetTopWindow()->GetHWND(), buf, HELP_PARTIALKEY, (DWORD)(const char*) k);
+      WinHelp((HWND) wxTheApp->GetTopWindow()->GetHWND(), (const char*) str, HELP_PARTIALKEY, (DWORD)(const char*) k);
       return TRUE;
     }
     return FALSE;
index c74ab9cf2458e860210af6183a49e1cb23284a01..1d626d92040b854da1bae595c240fd1f731ecb84 100644 (file)
@@ -358,7 +358,7 @@ $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp
 # If taking wxWindows from CVS, setup.h doesn't exist yet.
 $(WXDIR)\include\wx\msw\setup.h: $(WXDIR)\include\wx\msw\setup0.h
     -copy "$(WXDIR)"\include\wx\msw\setup.h "$(WXDIR)"\include\wx\msw\setup.bak
-    copy "$(WXDIR)"\include\wx\msw\setup0.h "$(WXDIR)"\include\wx\msw\setup.h 
+    if not exist "$(WXDIR)"\include\wx\msw\setup.h copy "$(WXDIR)"\include\wx\msw\setup0.h "$(WXDIR)"\include\wx\msw\setup.h 
 
 ..\common\$D\extended.obj:     ..\common\extended.c
         cl @<<
index 8b970ba6960d03663b16d8ddde0bda47bb8e8bb2..c80243a3e837d6e01e258ae7c5789e6b16b31113 100644 (file)
@@ -2201,7 +2201,7 @@ bool wxWindow::MSWOnCommand(WXWORD id, WXWORD cmd, WXHWND control)
 
 long wxWindow::MSWOnSysCommand(WXWPARAM wParam, WXLPARAM lParam)
 {
-    switch (wParam)
+    switch (wParam && 0xFFFFFFF0)
     {
     case SC_MAXIMIZE:
         {