]> git.saurik.com Git - wxWidgets.git/commitdiff
Added progdlgg.cpp to makefiles; fixed true/false in treectrl.h; made IsFree
authorJulian Smart <julian@anthemion.co.uk>
Wed, 2 Jun 1999 14:08:08 +0000 (14:08 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 2 Jun 1999 14:08:08 +0000 (14:08 +0000)
consistent (const omission)

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

20 files changed:
include/wx/generic/treectrl.h
include/wx/log.h
include/wx/msw/brush.h
include/wx/msw/font.h
include/wx/msw/gdiobj.h
include/wx/msw/winundef.h
include/wx/string.h
samples/dde/client.cpp
samples/makefile.vc
src/msw/brush.cpp
src/msw/font.cpp
src/msw/makefile.b32
src/msw/makefile.bcc
src/msw/makefile.dos
src/msw/makefile.g95
src/msw/makefile.sc
src/msw/makefile.sl
src/msw/makefile.twn
src/msw/makefile.vc
src/msw/makefile.wat

index 7d8ee8cb1c7ce5a01f4bfb6731277593e66078bc..9e57b50785c650903f8950ba9b6dbfc2f1bee4fd 100644 (file)
@@ -405,7 +405,7 @@ public:
     void Unselect();
     void UnselectAll();
         // select this item
-    void SelectItem(const wxTreeItemId& item, bool unselect_others=true, bool extended_select=false);
+    void SelectItem(const wxTreeItemId& item, bool unselect_others=TRUE, bool extended_select=FALSE);
         // make sure this item is visible (expanding the parent item and/or
         // scrolling to this item if necessary)
     void EnsureVisible(const wxTreeItemId& item);
index af0a164dd6bac64b0c8ca0ea4f262c9168f87fc0..2c9e5ccb3303c43cc4524aa8426efc54ddae4d3f 100644 (file)
@@ -449,7 +449,7 @@ DECLARE_LOG_FUNCTION2(SysError, long lErrCode);
     #define __TFILE__ __XFILE__(__FILE__)
 #endif
 
-#if __WXDEBUG__
+#ifdef __WXDEBUG__
     // make life easier for people using VC++ IDE: clicking on the message
     // will take us immediately to the place of the failed API
 #ifdef __VISUALC__
index 5805a692521485f990624682a6dba148b781791b..05ae288300eec6458a2cb47100b6f06994f6d117 100644 (file)
@@ -70,7 +70,7 @@ public:
   bool RealizeResource(void);
   WXHANDLE GetResourceHandle(void) ;
   bool FreeResource(bool force = FALSE);
-  bool IsFree(void);
+  bool IsFree() const;
   void Unshare();
 };
 
index c210aed28c295a197d5d0f97c89b5d05b0734892..a7a6609d2fe66f6bf911245d4f500ddc872a93e0 100644 (file)
@@ -68,7 +68,7 @@ public:
   virtual bool ReleaseResource(void);
 */
 
-  virtual bool IsFree(void);
+  virtual bool IsFree() const;
   virtual bool Ok(void) const { return (m_refData != NULL) ; }
 
   inline int GetPointSize(void) const { return M_FONTDATA->m_pointSize; }
index 1950d12ffe039991b6dc82e47713e5e8b08fd6f9..8f79cd0133cbdf19deaee21972f3dc538969413c 100644 (file)
@@ -48,7 +48,7 @@ DECLARE_DYNAMIC_CLASS(wxGDIObject)
   // Frees the resource
   virtual bool FreeResource(bool WXUNUSED(force) = FALSE) { return FALSE; };
 
-  virtual bool IsFree(void) { return FALSE; };
+  virtual bool IsFree(void) const { return FALSE; };
 
   inline bool IsNull(void) const { return (m_refData == 0); }
 
index 59d8d7a35a4156cfe626485243ba3903e9972b75..7e2b26daa6c0719c90db28b2d14cd05f8f5ae9d1 100644 (file)
@@ -20,6 +20,7 @@
     #undef GetCharWidth
 #endif
 
+#ifndef __WIN16__
 inline BOOL  GetCharWidth(HDC dc, UINT first, UINT last, LPINT buffer)
 {
 #ifdef _UNICODE
@@ -28,6 +29,7 @@ inline BOOL  GetCharWidth(HDC dc, UINT first, UINT last, LPINT buffer)
    return GetCharWidthA(dc, first, last, buffer);
 #endif
 }
+#endif
 
 // FindWindow
 
@@ -35,6 +37,7 @@ inline BOOL  GetCharWidth(HDC dc, UINT first, UINT last, LPINT buffer)
     #undef FindWindow
 #endif
 
+#ifndef __WIN16__
 #ifdef _UNICODE
 inline HWND FindWindow(LPCWSTR classname, LPCWSTR windowname)
 {
@@ -46,6 +49,7 @@ inline HWND FindWindow(LPCSTR classname, LPCSTR windowname)
    return FindWindowA(classname, windowname);
 }
 #endif
+#endif
 
 // GetClassName
 
@@ -53,6 +57,7 @@ inline HWND FindWindow(LPCSTR classname, LPCSTR windowname)
     #undef GetClassName
 #endif
 
+#ifndef __WIN16__
 #ifdef _UNICODE
 inline int GetClassName(HWND h, LPWSTR classname, int maxcount)
 {
@@ -64,6 +69,7 @@ inline int GetClassName(HWND h, LPSTR classname, int maxcount)
    return GetClassNameA(h, classname, maxcount);
 }
 #endif
+#endif
 
 // GetClassInfo
 
@@ -71,6 +77,7 @@ inline int GetClassName(HWND h, LPSTR classname, int maxcount)
     #undef GetClassInfo
 #endif
 
+#ifndef __WIN16__
 #ifdef _UNICODE
 inline BOOL GetClassInfo(HINSTANCE h, LPCWSTR name, LPWNDCLASSW winclass)
 {
@@ -82,6 +89,7 @@ inline BOOL GetClassInfo(HINSTANCE h, LPCSTR name, LPWNDCLASSA winclass)
    return GetClassInfoA(h, name, winclass);
 }
 #endif
+#endif
 
 // LoadAccelerators
 
@@ -89,6 +97,7 @@ inline BOOL GetClassInfo(HINSTANCE h, LPCSTR name, LPWNDCLASSA winclass)
     #undef LoadAccelerators
 #endif
 
+#ifndef __WIN16__
 #ifdef _UNICODE
 inline HACCEL LoadAccelerators(HINSTANCE h, LPCWSTR name)
 {
@@ -100,7 +109,7 @@ inline HACCEL LoadAccelerators(HINSTANCE h, LPCSTR name)
    return LoadAcceleratorsA(h, name);
 }
 #endif
-
+#endif
 
 // GetWindowProc... this isn't a Windows API function?!?!
 //ifdef GetWindowProc
@@ -114,6 +123,7 @@ inline HACCEL LoadAccelerators(HINSTANCE h, LPCSTR name)
     #undef DrawText
 #endif
 
+#ifndef __WIN16__
 #ifdef _UNICODE
 inline int DrawText(HDC h, LPCWSTR str, int count, LPRECT rect, UINT format)
 {
@@ -125,6 +135,7 @@ inline int DrawText(HDC h, LPCSTR str, int count, LPRECT rect, UINT format)
    return DrawTextA(h, str, count, rect, format);
 }
 #endif
+#endif
 
 // StartDoc
 
@@ -132,6 +143,7 @@ inline int DrawText(HDC h, LPCSTR str, int count, LPRECT rect, UINT format)
     #undef StartDoc
 #endif
 
+#ifndef __WIN16__
 #ifdef _UNICODE
 inline int StartDoc(HDC h, CONST DOCINFOW* info)
 {
@@ -143,6 +155,7 @@ inline int StartDoc(HDC h, CONST DOCINFOA* info)
    return StartDocA(h, info);
 }
 #endif
+#endif
 
 // GetFirstChild... not a Windows API Function!?!?!
 //ifdef GetFirstChild
@@ -163,6 +176,7 @@ inline int StartDoc(HDC h, CONST DOCINFOA* info)
     #undef GetObject
 #endif
 
+#ifndef __WIN16__
 inline int GetObject(HGDIOBJ h, int i, LPVOID buffer)
 {
 #ifdef _UNICODE
@@ -171,5 +185,6 @@ inline int GetObject(HGDIOBJ h, int i, LPVOID buffer)
    return GetObjectA(h, i, buffer);
 #endif   
 }
+#endif
 
 #endif // _WX_WINUNDEF_H_
index c3992d5f47e02dd591bf12229fee884f52675d78..fa68ee7ccff403b1d2e0db96856b7abff4a92771 100644 (file)
@@ -575,7 +575,7 @@ public:
     // case-sensitive comparison (returns a value < 0, = 0 or > 0)
   int  Cmp(const wxChar *psz) const { return wxStrcmp(c_str(), psz); }
     // same as Cmp() but not case-sensitive
-  int  CmpNoCase(const wxChar *psz) const { return wxStricmp(c_str(), psz); }
+  int  CmpNoCase(const wxChar *psz) const { return Stricmp(c_str(), psz); }
     // test for the string equality, either considering case or not
     // (if compareWithCase then the case matters)
   bool IsSameAs(const wxChar *psz, bool compareWithCase = TRUE) const
index 01430071ab84c13ba65197455324fefb042092e0..1422e850cb97dcd7f9b0bfd141e5d6d8d6f74477 100644 (file)
@@ -79,8 +79,7 @@ bool MyApp::OnInit()
   frame->Fit();
 
   wxString server = "4242";
-  wxString hostName;
-  wxGetHostName(hostName);
+  wxString hostName = wxGetHostName();
 
   if (argc > 1)
     server = argv[1];
index a3efddc975a5774a8985372e414149f8fa10b8af..2eb883cff6b9709f48ae000d965c9a0b874f3266 100644 (file)
@@ -91,6 +91,12 @@ all:
         cd $(WXDIR)\samples\dde
         nmake -f client.vc FINAL=$(FINAL)
         nmake -f server.vc FINAL=$(FINAL)
+        cd $(WXDIR)\samples\caret
+        nmake -f makefile.vc FINAL=$(FINAL)
+        cd $(WXDIR)\samples\drawing
+        nmake -f makefile.vc FINAL=$(FINAL)
+        cd $(WXDIR)\samples\scroll
+        nmake -f makefile.vc FINAL=$(FINAL)
 #        cd $(WXDIR)\samples\regtest
 #        nmake -f makefile.vc FINAL=$(FINAL)
 
@@ -162,5 +168,11 @@ clean:
         cd $(WXDIR)\samples\dde
         nmake -f client.vc clean
         nmake -f server.vc clean
+        cd $(WXDIR)\samples\caret
+        nmake -f makefile.vc clean
+        cd $(WXDIR)\samples\drawing
+        nmake -f makefile.vc clean
+        cd $(WXDIR)\samples\scroll
+        nmake -f makefile.vc clean
         cd $(WXDIR)\samples
 
index 9c33fc9eddd345af0dac585414b1ce0023646fba..486caf5827fecca9a9ce272ccdddda4015a15f73 100644 (file)
@@ -179,7 +179,7 @@ bool wxBrush::FreeResource(bool WXUNUSED(force))
   else return FALSE;
 }
 
-bool wxBrush::IsFree(void)
+bool wxBrush::IsFree() const
 {
   return (M_BRUSHDATA && (M_BRUSHDATA->m_hBrush == 0));
 }
index 47f4ac63fa35bbb05e169cbf60efbfd1169e162f..d6c84ee3b6d5a2812f88d9a46ac07c1c425e3c89 100644 (file)
@@ -232,7 +232,7 @@ WXHANDLE wxFont::GetResourceHandle()
     return (WXHANDLE)M_FONTDATA->m_hFont ;
 }
 
-bool wxFont::IsFree()
+bool wxFont::IsFree() const
 {
   return (M_FONTDATA && (M_FONTDATA->m_hFont == 0));
 }
index a9b92c3a4f5c76b7afe1eee8a42245bad256eba5..fad700852baff3bdf54386c8e2486419ab1ee0c3 100644 (file)
@@ -76,6 +76,7 @@ GENERICOBJS= \
   $(MSWDIR)\gridg.obj \
   $(MSWDIR)\laywin.obj \
   $(MSWDIR)\panelg.obj \
+  $(MSWDIR)\progdlgg.obj \
   $(MSWDIR)\prop.obj \
   $(MSWDIR)\proplist.obj \
   $(MSWDIR)\propform.obj \
@@ -642,6 +643,8 @@ $(MSWDIR)\msgdlgg.obj:     $(GENDIR)\msgdlgg.$(SRCSUFF)
 
 $(MSWDIR)\panelg.obj:     $(GENDIR)\panelg.$(SRCSUFF)
 
+$(MSWDIR)\progdlgg.obj:     $(GENDIR)\progdlgg.$(SRCSUFF)
+
 $(MSWDIR)\prop.obj:     $(GENDIR)\prop.$(SRCSUFF)
 
 $(MSWDIR)\proplist.obj:     $(GENDIR)\proplist.$(SRCSUFF)
@@ -728,6 +731,7 @@ $(CFG): makefile.b32
 -X
 -w-par
 -w-aus
+-w-hid # virtual function A hides virtual function B
 -WE
 -tWM
 
index f81c855d3c5e8534d527bffd43f32175293ba6a4..30b77448a2b302433887f6cc9ba821d321901717 100644 (file)
@@ -79,6 +79,7 @@ GENERICOBJS= \
   $(MSWDIR)\listctrl.obj \
   $(MSWDIR)\notebook.obj \
   $(MSWDIR)\panelg.obj \
+  $(MSWDIR)\progdlgg.obj \
   $(MSWDIR)\prop.obj \
   $(MSWDIR)\propform.obj \
   $(MSWDIR)\proplist.obj \
@@ -619,6 +620,8 @@ $(MSWDIR)\printps.obj:     $(GENDIR)\printps.$(SRCSUFF)
 
 $(MSWDIR)\prntdlgg.obj:     $(GENDIR)\prntdlgg.$(SRCSUFF)
 
+$(MSWDIR)\progdlgg.obj:     $(GENDIR)\progdlgg.$(SRCSUFF)
+
 $(MSWDIR)\prop.obj:     $(GENDIR)\prop.$(SRCSUFF)
 
 $(MSWDIR)\proplist.obj:     $(GENDIR)\proplist.$(SRCSUFF)
index a23c1db6a0ebbed6b271790bee6548c20dcbbd2b..fbcde4675ff18984e3a8a6f1f26b35cd3c8a642b 100644 (file)
@@ -62,6 +62,7 @@ GENERICOBJS= \
   $(GENDIR)\listctrl.obj \
   $(GENDIR)\notebook.obj \
   $(GENDIR)\panelg.obj \
+  $(GENDIR)\progdlgg.obj \
   $(GENDIR)\prop.obj \
   $(GENDIR)\propform.obj \
   $(GENDIR)\proplist.obj \
@@ -1031,6 +1032,11 @@ $(GENDIR)/prntdlgg.obj:     $*.$(SRCSUFF)
 $(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
 <<
 
+$(GENDIR)/progdlgg.obj:     $*.$(SRCSUFF)
+        cl @<<
+$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
+<<
+
 $(GENDIR)/prop.obj:     $*.$(SRCSUFF)
         cl @<<
 $(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
index 8f0300175112f01659bb6423df394fc7912eeb41..3b55706fbe23fcd40d812853bb3fce1ba7481836 100644 (file)
@@ -59,6 +59,7 @@ GENERICOBJS= \
   $(GENDIR)/gridg.$(OBJSUFF) \
   $(GENDIR)/laywin.$(OBJSUFF) \
   $(GENDIR)/panelg.$(OBJSUFF) \
+  $(GENDIR)/progdlgg.$(OBJSUFF) \
   $(GENDIR)/prop.$(OBJSUFF) \
   $(GENDIR)/propform.$(OBJSUFF) \
   $(GENDIR)/proplist.$(OBJSUFF) \
index aaef34a102ed7702c60fa4e93f64e8b0843fbfe1..d2d9a93acb05f9cd3e3f9cbef9a96266f297a81e 100644 (file)
@@ -26,6 +26,7 @@ GENERICOBJS= \
   $(GENDIR)\gridg.obj \
   $(GENDIR)\laywin.obj \
   $(GENDIR)\panelg.obj \
+  $(GENDIR)\progdlgg.obj \
   $(GENDIR)\prop.obj \
   $(GENDIR)\propform.obj \
   $(GENDIR)\proplist.obj \
index 26f4d60a7222c50f5fa28edf07a8fbeccd0fafdb..223b7608bef28e32c8bbb996e1d82ad0133ce8cd 100644 (file)
@@ -22,6 +22,7 @@ GENERICOBJS= choicdgg.obj \
   laywin.obj \
   panelg.obj \
   prop.obj \
+  progdlgg.obj \
   propform.obj \
   proplist.obj \
   sashwin.obj \
@@ -737,6 +738,9 @@ panelg.obj:     $(GENDIR)\panelg.cpp
 printps.obj:     $(GENDIR)\printps.cpp
   $(CCC) $(CPPFLAGS) $(IFLAGS) $(GENDIR)\printps.cpp /BINARY printps.obj
 
+progdlgg.obj:     $(GENDIR)\progdlgg.cpp
+  $(CCC) $(CPPFLAGS) $(IFLAGS) $(GENDIR)\progdlgg.cpp /BINARY progdlgg.obj
+
 prop.obj:     $(GENDIR)\prop.cpp
   $(CCC) $(CPPFLAGS) $(IFLAGS) $(GENDIR)\prop.cpp /BINARY prop.obj
 
index c30815250dac2cdfe6f8dd36759be00360fb816e..3a70a7d5f63a298227ad1f2a685c6692418ce09a 100644 (file)
@@ -61,6 +61,7 @@ GENERICOBJS= \
   $(GENDIR)/gridg.$(OBJSUFF) \
   $(GENDIR)/laywin.$(OBJSUFF) \
   $(GENDIR)/panelg.$(OBJSUFF) \
+  $(GENDIR)/progdlgg.$(OBJSUFF) \
   $(GENDIR)/prop.$(OBJSUFF) \
   $(GENDIR)/propform.$(OBJSUFF) \
   $(GENDIR)/proplist.$(OBJSUFF) \
index 3d4db3d28261c664c8b8f6a24e6a36a22eb388ee..8303dca518726e9d1339922a241227573b49a23a 100644 (file)
@@ -70,6 +70,7 @@ GENERICOBJS= \
   ..\generic\$D\gridg.obj \
   ..\generic\$D\laywin.obj \
   ..\generic\$D\panelg.obj \
+  ..\generic\$D\progdlgg.obj \
   ..\generic\$D\prop.obj \
   ..\generic\$D\propform.obj \
   ..\generic\$D\proplist.obj \
index ca78747f3c906906116c5867ee9a8a6ce312b1d7..c77adfa14fe706029f5184aab7682b396e585e9a 100644 (file)
@@ -30,6 +30,7 @@ GENERICOBJS= choicdgg.obj &
   gridg.obj &
   laywin.obj &
   panelg.obj &
+  progdlgg.obj &
   prop.obj &
   propform.obj &
   proplist.obj &
@@ -759,6 +760,9 @@ panelg.obj:     $(GENDIR)\panelg.cpp
 printps.obj:     $(GENDIR)\printps.cpp
   *$(CCC) $(CPPFLAGS) $(IFLAGS) $<
 
+progdlgg.obj:     $(GENDIR)\progdlgg.cpp
+  *$(CCC) $(CPPFLAGS) $(IFLAGS) $<
+
 prop.obj:     $(GENDIR)\prop.cpp
   *$(CCC) $(CPPFLAGS) $(IFLAGS) $<