]> git.saurik.com Git - wxWidgets.git/commitdiff
Added test for wxUSE_STATLINE in statline.cpp
authorJulian Smart <julian@anthemion.co.uk>
Sat, 10 Jul 1999 13:31:14 +0000 (13:31 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 10 Jul 1999 13:31:14 +0000 (13:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gdicmn.h
include/wx/msw/setup0.h
samples/makefile.vc
src/msw/makefile.g95
src/msw/statline.cpp

index 78d36bd9205897be89d58126f13a34a408bbb384..0e197f0482cfe8ee380c128c63c60855ce7d4230 100644 (file)
@@ -264,11 +264,17 @@ public:
     wxPoint GetPosition() const { return wxPoint(x, y); }
     wxSize GetSize() const { return wxSize(width, height); }
 
+    // MFC-like functions
+
     long GetLeft()   const { return x; }
     long GetTop()    const { return y; }
-    long GetBottom() const { return y + height; }
-    long GetRight()  const { return x + width; }
+    long GetBottom() const { return y + height - 1; }
+    long GetRight()  const { return x + width - 1; }
 
+    void SetLeft(long left) { x = left; }
+    void SetRight(long right) { width = right - x + 1; }
+    void SetTop(long top) { y = top; }
+    void SetBottom(long bottom) { height = bottom - y + 1; }
 
     bool operator==(const wxRect& rect) const;
     bool operator!=(const wxRect& rect) const { return !(*this == rect); }
index fb83bf26588a531935866fee4cb7ddb443a50109..fc1751489ccfe8faae07a33e6322b1ed1868e014 100644 (file)
 
 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
                                   // Set to 0 to disable document/view architecture
+#define wxUSE_MDI_ARCHITECTURE  1
+                                  // Set to 0 to disable MDI document/view architecture
 #define wxUSE_PRINTING_ARCHITECTURE  1
                                     // Set to 0 to disable print/preview architecture code
 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
index 2eb883cff6b9709f48ae000d965c9a0b874f3266..bd495eae05986bcd7721124c310f46de02cae7cb 100644 (file)
@@ -66,6 +66,8 @@ all:
         nmake -f makefile.vc FINAL=$(FINAL)
         cd $(WXDIR)\samples\sashtest
         nmake -f makefile.vc FINAL=$(FINAL)
+        cd $(WXDIR)\samples\config
+        nmake -f makefile.vc FINAL=$(FINAL)
 !if "$(FINAL)" == "0"
         cd $(WXDIR)\samples\memcheck
 !endif
@@ -149,6 +151,8 @@ clean:
         nmake -f makefile.vc clean
         cd $(WXDIR)\samples\sashtest
         nmake -f makefile.vc clean
+        cd $(WXDIR)\samples\config
+        nmake -f makefile.vc clean
         cd $(WXDIR)\samples\memcheck
         nmake -f makefile.vc clean
         cd $(WXDIR)\samples\minifram
index bcaa1278de9d8315a94c8cf39ea5decc08357a54..bf92a7eccba88c056cd7a0d207ad0a9a07c4afa7 100644 (file)
@@ -68,7 +68,7 @@ GENERICOBJS= \
   $(GENDIR)/splitter.$(OBJSUFF) \
   $(GENDIR)/statusbr.$(OBJSUFF) \
   $(GENDIR)/tabg.$(OBJSUFF) \
-  $(GENDIR)/textdlgg.$(OBJSUFF)
+  $(GENDIR)/textdlgg.$(OBJSUFF) \
   $(GENDIR)/tipdlg.$(OBJSUFF)
 
 #  $(GENDIR)/colrdlgg.$(OBJSUFF) \
index 5737b15039cae213a1355ef37d1e6aa230df0f98..46df810d0428fccfcbb5e171ed7213e7b843d8f2 100644 (file)
@@ -29,6 +29,8 @@
 
 #include "wx/statline.h"
 
+#if wxUSE_STATLINE
+
 #include "wx/msw/private.h"
 
 // ============================================================================
@@ -83,4 +85,5 @@ bool wxStaticLine::Create( wxWindow *parent,
 
     return TRUE;
 }
+#endif