From 4d2c67a9dad9b04a5346c3a5131890da7f0aa853 Mon Sep 17 00:00:00 2001
From: Julian Smart <julian@anthemion.co.uk>
Date: Wed, 13 Jun 2001 12:45:31 +0000
Subject: [PATCH] Added wxUSE_MENUS to setup0.h to make menu sample compile;
 updated some makefiles

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 distrib/msw/generic.rsp  | 12 ++++++++++++
 distrib/msw/makefile.rsp |  1 +
 distrib/msw/vc.rsp       |  3 +++
 docs/latex/wx/frame.tex  |  1 +
 include/wx/msw/setup0.h  |  2 ++
 samples/erase/erase.cpp  |  8 ++++----
 src/msw/makefile.b32     |  3 +++
 src/msw/makefile.g95     |  1 +
 8 files changed, 27 insertions(+), 4 deletions(-)

diff --git a/distrib/msw/generic.rsp b/distrib/msw/generic.rsp
index 7332ec3903..c6a50e457a 100644
--- a/distrib/msw/generic.rsp
+++ b/distrib/msw/generic.rsp
@@ -219,6 +219,18 @@ samples/dynamic/*.bmp
 samples/dynamic/*.rc
 samples/dynamic/*.wav
 
+samples/erase/*.cpp
+samples/erase/*.h
+samples/erase/*.def
+samples/erase/makefile*
+samples/erase/*.xbm
+samples/erase/*.xpm
+samples/erase/*.txt
+samples/erase/*.ico
+samples/erase/*.bmp
+samples/erase/*.rc
+samples/erase/*.wav
+
 samples/sockets/*.cpp
 samples/sockets/*.h
 samples/sockets/*.def
diff --git a/distrib/msw/makefile.rsp b/distrib/msw/makefile.rsp
index b7b4c27d4a..95f970037b 100644
--- a/distrib/msw/makefile.rsp
+++ b/distrib/msw/makefile.rsp
@@ -15,6 +15,7 @@ samples/docvwmdi/Makefile.in
 samples/dragimag/Makefile.in
 samples/drawing/Makefile.in
 samples/dynamic/Makefile.in
+samples/erase/Makefile.in
 samples/exec/Makefile.in
 samples/event/Makefile.in
 samples/grid/Makefile.in
diff --git a/distrib/msw/vc.rsp b/distrib/msw/vc.rsp
index 872670f2d8..78400b4d0f 100644
--- a/distrib/msw/vc.rsp
+++ b/distrib/msw/vc.rsp
@@ -64,6 +64,9 @@ samples/drawing/DrawingVC.dsw
 samples/dynamic/DynamicVC.dsp
 samples/dynamic/DynamicVC.dsw
 
+samples/dynamic/EraseVC.dsp
+samples/dynamic/EraseVC.dsw
+
 samples/event/EventVC.dsp
 samples/event/EventVC.dsw
 
diff --git a/docs/latex/wx/frame.tex b/docs/latex/wx/frame.tex
index 29c31e7c3b..d4bd5a33a1 100644
--- a/docs/latex/wx/frame.tex
+++ b/docs/latex/wx/frame.tex
@@ -594,3 +594,4 @@ This function has not been tested with MDI frames.
 \wxheading{See also}
 
 \helpref{wxFrame::IsFullScreen}{wxframeisfullscreen}
+
diff --git a/include/wx/msw/setup0.h b/include/wx/msw/setup0.h
index 414f4ee124..024c589f2c 100644
--- a/include/wx/msw/setup0.h
+++ b/include/wx/msw/setup0.h
@@ -320,6 +320,8 @@
 // Miscellaneous geometry code: needed for Canvas library
 #define wxUSE_GEOMETRY            1
 
+// Use menus
+#define wxUSE_MENUS               1
 
 // ----------------------------------------------------------------------------
 // Optional controls
diff --git a/samples/erase/erase.cpp b/samples/erase/erase.cpp
index 8162f96f6f..dde8738687 100644
--- a/samples/erase/erase.cpp
+++ b/samples/erase/erase.cpp
@@ -18,8 +18,8 @@
 // ----------------------------------------------------------------------------
 
 #ifdef __GNUG__
-    #pragma implementation "minimal.cpp"
-    #pragma interface "minimal.cpp"
+    #pragma implementation "erase.cpp"
+    #pragma interface "erase.cpp"
 #endif
 
 // For compilers that support precompilation, includes "wx/wx.h".
@@ -157,10 +157,10 @@ void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
 void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
 {
     wxString msg;
-    msg.Printf( _T("This is the about dialog of minimal sample.\n")
+    msg.Printf( _T("This is the about dialog of tghe Erase sample.\n")
                 _T("Welcome to %s"), wxVERSION_STRING);
 
-    wxMessageBox(msg, "About Minimal", wxOK | wxICON_INFORMATION, this);
+    wxMessageBox(msg, "About Erase", wxOK | wxICON_INFORMATION, this);
 }
 
 
diff --git a/src/msw/makefile.b32 b/src/msw/makefile.b32
index 946f53fecd..ec9190b429 100644
--- a/src/msw/makefile.b32
+++ b/src/msw/makefile.b32
@@ -125,6 +125,7 @@ COMMONOBJS = \
 		$(MSWDIR)\datetime.obj \
 		$(MSWDIR)\datstrm.obj \
 		$(MSWDIR)\db.obj \
+		$(MSWDIR)\dbgrid.obj \
 		$(MSWDIR)\dbtable.obj \
 		$(MSWDIR)\dcbase.obj \
 		$(MSWDIR)\dircmn.obj \
@@ -627,6 +628,8 @@ $(MSWDIR)\datstrm.obj: $(COMMDIR)\datstrm.$(SRCSUFF)
 
 $(MSWDIR)\db.obj: $(COMMDIR)\db.$(SRCSUFF)
 
+$(MSWDIR)\dbgrid.obj: $(COMMDIR)\dbgrid.$(SRCSUFF)
+
 $(MSWDIR)\dbtable.obj: $(COMMDIR)\dbtable.$(SRCSUFF)
 
 $(MSWDIR)\dcbase.obj: $(COMMDIR)\dcbase.$(SRCSUFF)
diff --git a/src/msw/makefile.g95 b/src/msw/makefile.g95
index ae10387ffc..ef7dac0306 100644
--- a/src/msw/makefile.g95
+++ b/src/msw/makefile.g95
@@ -110,6 +110,7 @@ COMMONOBJS  = \
 		$(COMMDIR)/datetime.$(OBJSUFF) \
 		$(COMMDIR)/datstrm.$(OBJSUFF) \
 		$(COMMDIR)/db.$(OBJSUFF) \
+		$(COMMDIR)/dbgrid.$(OBJSUFF) \
 		$(COMMDIR)/dbtable.$(OBJSUFF) \
 		$(COMMDIR)/dcbase.$(OBJSUFF) \
 		$(COMMDIR)/dircmn.$(OBJSUFF) \
-- 
2.50.0

