Added progdlgg.cpp to makefiles; fixed true/false in treectrl.h; made IsFree

consistent (const omission)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-06-02 14:08:08 +00:00
parent efeb036598
commit e90babdf85
20 changed files with 62 additions and 11 deletions

View File

@@ -405,7 +405,7 @@ public:
void Unselect(); void Unselect();
void UnselectAll(); void UnselectAll();
// select this item // 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 // make sure this item is visible (expanding the parent item and/or
// scrolling to this item if necessary) // scrolling to this item if necessary)
void EnsureVisible(const wxTreeItemId& item); void EnsureVisible(const wxTreeItemId& item);

View File

@@ -449,7 +449,7 @@ DECLARE_LOG_FUNCTION2(SysError, long lErrCode);
#define __TFILE__ __XFILE__(__FILE__) #define __TFILE__ __XFILE__(__FILE__)
#endif #endif
#if __WXDEBUG__ #ifdef __WXDEBUG__
// make life easier for people using VC++ IDE: clicking on the message // make life easier for people using VC++ IDE: clicking on the message
// will take us immediately to the place of the failed API // will take us immediately to the place of the failed API
#ifdef __VISUALC__ #ifdef __VISUALC__

View File

@@ -70,7 +70,7 @@ public:
bool RealizeResource(void); bool RealizeResource(void);
WXHANDLE GetResourceHandle(void) ; WXHANDLE GetResourceHandle(void) ;
bool FreeResource(bool force = FALSE); bool FreeResource(bool force = FALSE);
bool IsFree(void); bool IsFree() const;
void Unshare(); void Unshare();
}; };

View File

@@ -68,7 +68,7 @@ public:
virtual bool ReleaseResource(void); virtual bool ReleaseResource(void);
*/ */
virtual bool IsFree(void); virtual bool IsFree() const;
virtual bool Ok(void) const { return (m_refData != NULL) ; } virtual bool Ok(void) const { return (m_refData != NULL) ; }
inline int GetPointSize(void) const { return M_FONTDATA->m_pointSize; } inline int GetPointSize(void) const { return M_FONTDATA->m_pointSize; }

View File

@@ -48,7 +48,7 @@ DECLARE_DYNAMIC_CLASS(wxGDIObject)
// Frees the resource // Frees the resource
virtual bool FreeResource(bool WXUNUSED(force) = FALSE) { return FALSE; }; 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); } inline bool IsNull(void) const { return (m_refData == 0); }

View File

@@ -20,6 +20,7 @@
#undef GetCharWidth #undef GetCharWidth
#endif #endif
#ifndef __WIN16__
inline BOOL GetCharWidth(HDC dc, UINT first, UINT last, LPINT buffer) inline BOOL GetCharWidth(HDC dc, UINT first, UINT last, LPINT buffer)
{ {
#ifdef _UNICODE #ifdef _UNICODE
@@ -28,6 +29,7 @@ inline BOOL GetCharWidth(HDC dc, UINT first, UINT last, LPINT buffer)
return GetCharWidthA(dc, first, last, buffer); return GetCharWidthA(dc, first, last, buffer);
#endif #endif
} }
#endif
// FindWindow // FindWindow
@@ -35,6 +37,7 @@ inline BOOL GetCharWidth(HDC dc, UINT first, UINT last, LPINT buffer)
#undef FindWindow #undef FindWindow
#endif #endif
#ifndef __WIN16__
#ifdef _UNICODE #ifdef _UNICODE
inline HWND FindWindow(LPCWSTR classname, LPCWSTR windowname) inline HWND FindWindow(LPCWSTR classname, LPCWSTR windowname)
{ {
@@ -46,6 +49,7 @@ inline HWND FindWindow(LPCSTR classname, LPCSTR windowname)
return FindWindowA(classname, windowname); return FindWindowA(classname, windowname);
} }
#endif #endif
#endif
// GetClassName // GetClassName
@@ -53,6 +57,7 @@ inline HWND FindWindow(LPCSTR classname, LPCSTR windowname)
#undef GetClassName #undef GetClassName
#endif #endif
#ifndef __WIN16__
#ifdef _UNICODE #ifdef _UNICODE
inline int GetClassName(HWND h, LPWSTR classname, int maxcount) 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); return GetClassNameA(h, classname, maxcount);
} }
#endif #endif
#endif
// GetClassInfo // GetClassInfo
@@ -71,6 +77,7 @@ inline int GetClassName(HWND h, LPSTR classname, int maxcount)
#undef GetClassInfo #undef GetClassInfo
#endif #endif
#ifndef __WIN16__
#ifdef _UNICODE #ifdef _UNICODE
inline BOOL GetClassInfo(HINSTANCE h, LPCWSTR name, LPWNDCLASSW winclass) 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); return GetClassInfoA(h, name, winclass);
} }
#endif #endif
#endif
// LoadAccelerators // LoadAccelerators
@@ -89,6 +97,7 @@ inline BOOL GetClassInfo(HINSTANCE h, LPCSTR name, LPWNDCLASSA winclass)
#undef LoadAccelerators #undef LoadAccelerators
#endif #endif
#ifndef __WIN16__
#ifdef _UNICODE #ifdef _UNICODE
inline HACCEL LoadAccelerators(HINSTANCE h, LPCWSTR name) inline HACCEL LoadAccelerators(HINSTANCE h, LPCWSTR name)
{ {
@@ -100,7 +109,7 @@ inline HACCEL LoadAccelerators(HINSTANCE h, LPCSTR name)
return LoadAcceleratorsA(h, name); return LoadAcceleratorsA(h, name);
} }
#endif #endif
#endif
// GetWindowProc... this isn't a Windows API function?!?! // GetWindowProc... this isn't a Windows API function?!?!
//ifdef GetWindowProc //ifdef GetWindowProc
@@ -114,6 +123,7 @@ inline HACCEL LoadAccelerators(HINSTANCE h, LPCSTR name)
#undef DrawText #undef DrawText
#endif #endif
#ifndef __WIN16__
#ifdef _UNICODE #ifdef _UNICODE
inline int DrawText(HDC h, LPCWSTR str, int count, LPRECT rect, UINT format) 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); return DrawTextA(h, str, count, rect, format);
} }
#endif #endif
#endif
// StartDoc // StartDoc
@@ -132,6 +143,7 @@ inline int DrawText(HDC h, LPCSTR str, int count, LPRECT rect, UINT format)
#undef StartDoc #undef StartDoc
#endif #endif
#ifndef __WIN16__
#ifdef _UNICODE #ifdef _UNICODE
inline int StartDoc(HDC h, CONST DOCINFOW* info) inline int StartDoc(HDC h, CONST DOCINFOW* info)
{ {
@@ -143,6 +155,7 @@ inline int StartDoc(HDC h, CONST DOCINFOA* info)
return StartDocA(h, info); return StartDocA(h, info);
} }
#endif #endif
#endif
// GetFirstChild... not a Windows API Function!?!?! // GetFirstChild... not a Windows API Function!?!?!
//ifdef GetFirstChild //ifdef GetFirstChild
@@ -163,6 +176,7 @@ inline int StartDoc(HDC h, CONST DOCINFOA* info)
#undef GetObject #undef GetObject
#endif #endif
#ifndef __WIN16__
inline int GetObject(HGDIOBJ h, int i, LPVOID buffer) inline int GetObject(HGDIOBJ h, int i, LPVOID buffer)
{ {
#ifdef _UNICODE #ifdef _UNICODE
@@ -171,5 +185,6 @@ inline int GetObject(HGDIOBJ h, int i, LPVOID buffer)
return GetObjectA(h, i, buffer); return GetObjectA(h, i, buffer);
#endif #endif
} }
#endif
#endif // _WX_WINUNDEF_H_ #endif // _WX_WINUNDEF_H_

View File

@@ -575,7 +575,7 @@ public:
// case-sensitive comparison (returns a value < 0, = 0 or > 0) // case-sensitive comparison (returns a value < 0, = 0 or > 0)
int Cmp(const wxChar *psz) const { return wxStrcmp(c_str(), psz); } int Cmp(const wxChar *psz) const { return wxStrcmp(c_str(), psz); }
// same as Cmp() but not case-sensitive // 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 // test for the string equality, either considering case or not
// (if compareWithCase then the case matters) // (if compareWithCase then the case matters)
bool IsSameAs(const wxChar *psz, bool compareWithCase = TRUE) const bool IsSameAs(const wxChar *psz, bool compareWithCase = TRUE) const

View File

@@ -79,8 +79,7 @@ bool MyApp::OnInit()
frame->Fit(); frame->Fit();
wxString server = "4242"; wxString server = "4242";
wxString hostName; wxString hostName = wxGetHostName();
wxGetHostName(hostName);
if (argc > 1) if (argc > 1)
server = argv[1]; server = argv[1];

View File

@@ -91,6 +91,12 @@ all:
cd $(WXDIR)\samples\dde cd $(WXDIR)\samples\dde
nmake -f client.vc FINAL=$(FINAL) nmake -f client.vc FINAL=$(FINAL)
nmake -f server.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 # cd $(WXDIR)\samples\regtest
# nmake -f makefile.vc FINAL=$(FINAL) # nmake -f makefile.vc FINAL=$(FINAL)
@@ -162,5 +168,11 @@ clean:
cd $(WXDIR)\samples\dde cd $(WXDIR)\samples\dde
nmake -f client.vc clean nmake -f client.vc clean
nmake -f server.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 cd $(WXDIR)\samples

View File

@@ -179,7 +179,7 @@ bool wxBrush::FreeResource(bool WXUNUSED(force))
else return FALSE; else return FALSE;
} }
bool wxBrush::IsFree(void) bool wxBrush::IsFree() const
{ {
return (M_BRUSHDATA && (M_BRUSHDATA->m_hBrush == 0)); return (M_BRUSHDATA && (M_BRUSHDATA->m_hBrush == 0));
} }

View File

@@ -232,7 +232,7 @@ WXHANDLE wxFont::GetResourceHandle()
return (WXHANDLE)M_FONTDATA->m_hFont ; return (WXHANDLE)M_FONTDATA->m_hFont ;
} }
bool wxFont::IsFree() bool wxFont::IsFree() const
{ {
return (M_FONTDATA && (M_FONTDATA->m_hFont == 0)); return (M_FONTDATA && (M_FONTDATA->m_hFont == 0));
} }

View File

@@ -76,6 +76,7 @@ GENERICOBJS= \
$(MSWDIR)\gridg.obj \ $(MSWDIR)\gridg.obj \
$(MSWDIR)\laywin.obj \ $(MSWDIR)\laywin.obj \
$(MSWDIR)\panelg.obj \ $(MSWDIR)\panelg.obj \
$(MSWDIR)\progdlgg.obj \
$(MSWDIR)\prop.obj \ $(MSWDIR)\prop.obj \
$(MSWDIR)\proplist.obj \ $(MSWDIR)\proplist.obj \
$(MSWDIR)\propform.obj \ $(MSWDIR)\propform.obj \
@@ -642,6 +643,8 @@ $(MSWDIR)\msgdlgg.obj: $(GENDIR)\msgdlgg.$(SRCSUFF)
$(MSWDIR)\panelg.obj: $(GENDIR)\panelg.$(SRCSUFF) $(MSWDIR)\panelg.obj: $(GENDIR)\panelg.$(SRCSUFF)
$(MSWDIR)\progdlgg.obj: $(GENDIR)\progdlgg.$(SRCSUFF)
$(MSWDIR)\prop.obj: $(GENDIR)\prop.$(SRCSUFF) $(MSWDIR)\prop.obj: $(GENDIR)\prop.$(SRCSUFF)
$(MSWDIR)\proplist.obj: $(GENDIR)\proplist.$(SRCSUFF) $(MSWDIR)\proplist.obj: $(GENDIR)\proplist.$(SRCSUFF)
@@ -728,6 +731,7 @@ $(CFG): makefile.b32
-X -X
-w-par -w-par
-w-aus -w-aus
-w-hid # virtual function A hides virtual function B
-WE -WE
-tWM -tWM

View File

@@ -79,6 +79,7 @@ GENERICOBJS= \
$(MSWDIR)\listctrl.obj \ $(MSWDIR)\listctrl.obj \
$(MSWDIR)\notebook.obj \ $(MSWDIR)\notebook.obj \
$(MSWDIR)\panelg.obj \ $(MSWDIR)\panelg.obj \
$(MSWDIR)\progdlgg.obj \
$(MSWDIR)\prop.obj \ $(MSWDIR)\prop.obj \
$(MSWDIR)\propform.obj \ $(MSWDIR)\propform.obj \
$(MSWDIR)\proplist.obj \ $(MSWDIR)\proplist.obj \
@@ -619,6 +620,8 @@ $(MSWDIR)\printps.obj: $(GENDIR)\printps.$(SRCSUFF)
$(MSWDIR)\prntdlgg.obj: $(GENDIR)\prntdlgg.$(SRCSUFF) $(MSWDIR)\prntdlgg.obj: $(GENDIR)\prntdlgg.$(SRCSUFF)
$(MSWDIR)\progdlgg.obj: $(GENDIR)\progdlgg.$(SRCSUFF)
$(MSWDIR)\prop.obj: $(GENDIR)\prop.$(SRCSUFF) $(MSWDIR)\prop.obj: $(GENDIR)\prop.$(SRCSUFF)
$(MSWDIR)\proplist.obj: $(GENDIR)\proplist.$(SRCSUFF) $(MSWDIR)\proplist.obj: $(GENDIR)\proplist.$(SRCSUFF)

View File

@@ -62,6 +62,7 @@ GENERICOBJS= \
$(GENDIR)\listctrl.obj \ $(GENDIR)\listctrl.obj \
$(GENDIR)\notebook.obj \ $(GENDIR)\notebook.obj \
$(GENDIR)\panelg.obj \ $(GENDIR)\panelg.obj \
$(GENDIR)\progdlgg.obj \
$(GENDIR)\prop.obj \ $(GENDIR)\prop.obj \
$(GENDIR)\propform.obj \ $(GENDIR)\propform.obj \
$(GENDIR)\proplist.obj \ $(GENDIR)\proplist.obj \
@@ -1031,6 +1032,11 @@ $(GENDIR)/prntdlgg.obj: $*.$(SRCSUFF)
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF) $(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
<< <<
$(GENDIR)/progdlgg.obj: $*.$(SRCSUFF)
cl @<<
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
<<
$(GENDIR)/prop.obj: $*.$(SRCSUFF) $(GENDIR)/prop.obj: $*.$(SRCSUFF)
cl @<< cl @<<
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF) $(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)

View File

@@ -59,6 +59,7 @@ GENERICOBJS= \
$(GENDIR)/gridg.$(OBJSUFF) \ $(GENDIR)/gridg.$(OBJSUFF) \
$(GENDIR)/laywin.$(OBJSUFF) \ $(GENDIR)/laywin.$(OBJSUFF) \
$(GENDIR)/panelg.$(OBJSUFF) \ $(GENDIR)/panelg.$(OBJSUFF) \
$(GENDIR)/progdlgg.$(OBJSUFF) \
$(GENDIR)/prop.$(OBJSUFF) \ $(GENDIR)/prop.$(OBJSUFF) \
$(GENDIR)/propform.$(OBJSUFF) \ $(GENDIR)/propform.$(OBJSUFF) \
$(GENDIR)/proplist.$(OBJSUFF) \ $(GENDIR)/proplist.$(OBJSUFF) \

View File

@@ -26,6 +26,7 @@ GENERICOBJS= \
$(GENDIR)\gridg.obj \ $(GENDIR)\gridg.obj \
$(GENDIR)\laywin.obj \ $(GENDIR)\laywin.obj \
$(GENDIR)\panelg.obj \ $(GENDIR)\panelg.obj \
$(GENDIR)\progdlgg.obj \
$(GENDIR)\prop.obj \ $(GENDIR)\prop.obj \
$(GENDIR)\propform.obj \ $(GENDIR)\propform.obj \
$(GENDIR)\proplist.obj \ $(GENDIR)\proplist.obj \

View File

@@ -22,6 +22,7 @@ GENERICOBJS= choicdgg.obj \
laywin.obj \ laywin.obj \
panelg.obj \ panelg.obj \
prop.obj \ prop.obj \
progdlgg.obj \
propform.obj \ propform.obj \
proplist.obj \ proplist.obj \
sashwin.obj \ sashwin.obj \
@@ -737,6 +738,9 @@ panelg.obj: $(GENDIR)\panelg.cpp
printps.obj: $(GENDIR)\printps.cpp printps.obj: $(GENDIR)\printps.cpp
$(CCC) $(CPPFLAGS) $(IFLAGS) $(GENDIR)\printps.cpp /BINARY printps.obj $(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 prop.obj: $(GENDIR)\prop.cpp
$(CCC) $(CPPFLAGS) $(IFLAGS) $(GENDIR)\prop.cpp /BINARY prop.obj $(CCC) $(CPPFLAGS) $(IFLAGS) $(GENDIR)\prop.cpp /BINARY prop.obj

View File

@@ -61,6 +61,7 @@ GENERICOBJS= \
$(GENDIR)/gridg.$(OBJSUFF) \ $(GENDIR)/gridg.$(OBJSUFF) \
$(GENDIR)/laywin.$(OBJSUFF) \ $(GENDIR)/laywin.$(OBJSUFF) \
$(GENDIR)/panelg.$(OBJSUFF) \ $(GENDIR)/panelg.$(OBJSUFF) \
$(GENDIR)/progdlgg.$(OBJSUFF) \
$(GENDIR)/prop.$(OBJSUFF) \ $(GENDIR)/prop.$(OBJSUFF) \
$(GENDIR)/propform.$(OBJSUFF) \ $(GENDIR)/propform.$(OBJSUFF) \
$(GENDIR)/proplist.$(OBJSUFF) \ $(GENDIR)/proplist.$(OBJSUFF) \

View File

@@ -70,6 +70,7 @@ GENERICOBJS= \
..\generic\$D\gridg.obj \ ..\generic\$D\gridg.obj \
..\generic\$D\laywin.obj \ ..\generic\$D\laywin.obj \
..\generic\$D\panelg.obj \ ..\generic\$D\panelg.obj \
..\generic\$D\progdlgg.obj \
..\generic\$D\prop.obj \ ..\generic\$D\prop.obj \
..\generic\$D\propform.obj \ ..\generic\$D\propform.obj \
..\generic\$D\proplist.obj \ ..\generic\$D\proplist.obj \

View File

@@ -30,6 +30,7 @@ GENERICOBJS= choicdgg.obj &
gridg.obj & gridg.obj &
laywin.obj & laywin.obj &
panelg.obj & panelg.obj &
progdlgg.obj &
prop.obj & prop.obj &
propform.obj & propform.obj &
proplist.obj & proplist.obj &
@@ -759,6 +760,9 @@ panelg.obj: $(GENDIR)\panelg.cpp
printps.obj: $(GENDIR)\printps.cpp printps.obj: $(GENDIR)\printps.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $< *$(CCC) $(CPPFLAGS) $(IFLAGS) $<
progdlgg.obj: $(GENDIR)\progdlgg.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
prop.obj: $(GENDIR)\prop.cpp prop.obj: $(GENDIR)\prop.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $< *$(CCC) $(CPPFLAGS) $(IFLAGS) $<