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);
#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__
bool RealizeResource(void);
WXHANDLE GetResourceHandle(void) ;
bool FreeResource(bool force = FALSE);
- bool IsFree(void);
+ bool IsFree() const;
void Unshare();
};
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; }
// 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); }
#undef GetCharWidth
#endif
+#ifndef __WIN16__
inline BOOL GetCharWidth(HDC dc, UINT first, UINT last, LPINT buffer)
{
#ifdef _UNICODE
return GetCharWidthA(dc, first, last, buffer);
#endif
}
+#endif
// FindWindow
#undef FindWindow
#endif
+#ifndef __WIN16__
#ifdef _UNICODE
inline HWND FindWindow(LPCWSTR classname, LPCWSTR windowname)
{
return FindWindowA(classname, windowname);
}
#endif
+#endif
// GetClassName
#undef GetClassName
#endif
+#ifndef __WIN16__
#ifdef _UNICODE
inline int GetClassName(HWND h, LPWSTR classname, int maxcount)
{
return GetClassNameA(h, classname, maxcount);
}
#endif
+#endif
// GetClassInfo
#undef GetClassInfo
#endif
+#ifndef __WIN16__
#ifdef _UNICODE
inline BOOL GetClassInfo(HINSTANCE h, LPCWSTR name, LPWNDCLASSW winclass)
{
return GetClassInfoA(h, name, winclass);
}
#endif
+#endif
// LoadAccelerators
#undef LoadAccelerators
#endif
+#ifndef __WIN16__
#ifdef _UNICODE
inline HACCEL LoadAccelerators(HINSTANCE h, LPCWSTR name)
{
return LoadAcceleratorsA(h, name);
}
#endif
-
+#endif
// GetWindowProc... this isn't a Windows API function?!?!
//ifdef GetWindowProc
#undef DrawText
#endif
+#ifndef __WIN16__
#ifdef _UNICODE
inline int DrawText(HDC h, LPCWSTR str, int count, LPRECT rect, UINT format)
{
return DrawTextA(h, str, count, rect, format);
}
#endif
+#endif
// StartDoc
#undef StartDoc
#endif
+#ifndef __WIN16__
#ifdef _UNICODE
inline int StartDoc(HDC h, CONST DOCINFOW* info)
{
return StartDocA(h, info);
}
#endif
+#endif
// GetFirstChild... not a Windows API Function!?!?!
//ifdef GetFirstChild
#undef GetObject
#endif
+#ifndef __WIN16__
inline int GetObject(HGDIOBJ h, int i, LPVOID buffer)
{
#ifdef _UNICODE
return GetObjectA(h, i, buffer);
#endif
}
+#endif
#endif // _WX_WINUNDEF_H_
// 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
frame->Fit();
wxString server = "4242";
- wxString hostName;
- wxGetHostName(hostName);
+ wxString hostName = wxGetHostName();
if (argc > 1)
server = argv[1];
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)
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
else return FALSE;
}
-bool wxBrush::IsFree(void)
+bool wxBrush::IsFree() const
{
return (M_BRUSHDATA && (M_BRUSHDATA->m_hBrush == 0));
}
return (WXHANDLE)M_FONTDATA->m_hFont ;
}
-bool wxFont::IsFree()
+bool wxFont::IsFree() const
{
return (M_FONTDATA && (M_FONTDATA->m_hFont == 0));
}
$(MSWDIR)\gridg.obj \
$(MSWDIR)\laywin.obj \
$(MSWDIR)\panelg.obj \
+ $(MSWDIR)\progdlgg.obj \
$(MSWDIR)\prop.obj \
$(MSWDIR)\proplist.obj \
$(MSWDIR)\propform.obj \
$(MSWDIR)\panelg.obj: $(GENDIR)\panelg.$(SRCSUFF)
+$(MSWDIR)\progdlgg.obj: $(GENDIR)\progdlgg.$(SRCSUFF)
+
$(MSWDIR)\prop.obj: $(GENDIR)\prop.$(SRCSUFF)
$(MSWDIR)\proplist.obj: $(GENDIR)\proplist.$(SRCSUFF)
-X
-w-par
-w-aus
+-w-hid # virtual function A hides virtual function B
-WE
-tWM
$(MSWDIR)\listctrl.obj \
$(MSWDIR)\notebook.obj \
$(MSWDIR)\panelg.obj \
+ $(MSWDIR)\progdlgg.obj \
$(MSWDIR)\prop.obj \
$(MSWDIR)\propform.obj \
$(MSWDIR)\proplist.obj \
$(MSWDIR)\prntdlgg.obj: $(GENDIR)\prntdlgg.$(SRCSUFF)
+$(MSWDIR)\progdlgg.obj: $(GENDIR)\progdlgg.$(SRCSUFF)
+
$(MSWDIR)\prop.obj: $(GENDIR)\prop.$(SRCSUFF)
$(MSWDIR)\proplist.obj: $(GENDIR)\proplist.$(SRCSUFF)
$(GENDIR)\listctrl.obj \
$(GENDIR)\notebook.obj \
$(GENDIR)\panelg.obj \
+ $(GENDIR)\progdlgg.obj \
$(GENDIR)\prop.obj \
$(GENDIR)\propform.obj \
$(GENDIR)\proplist.obj \
$(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)
$(GENDIR)/gridg.$(OBJSUFF) \
$(GENDIR)/laywin.$(OBJSUFF) \
$(GENDIR)/panelg.$(OBJSUFF) \
+ $(GENDIR)/progdlgg.$(OBJSUFF) \
$(GENDIR)/prop.$(OBJSUFF) \
$(GENDIR)/propform.$(OBJSUFF) \
$(GENDIR)/proplist.$(OBJSUFF) \
$(GENDIR)\gridg.obj \
$(GENDIR)\laywin.obj \
$(GENDIR)\panelg.obj \
+ $(GENDIR)\progdlgg.obj \
$(GENDIR)\prop.obj \
$(GENDIR)\propform.obj \
$(GENDIR)\proplist.obj \
laywin.obj \
panelg.obj \
prop.obj \
+ progdlgg.obj \
propform.obj \
proplist.obj \
sashwin.obj \
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
$(GENDIR)/gridg.$(OBJSUFF) \
$(GENDIR)/laywin.$(OBJSUFF) \
$(GENDIR)/panelg.$(OBJSUFF) \
+ $(GENDIR)/progdlgg.$(OBJSUFF) \
$(GENDIR)/prop.$(OBJSUFF) \
$(GENDIR)/propform.$(OBJSUFF) \
$(GENDIR)/proplist.$(OBJSUFF) \
..\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 \
gridg.obj &
laywin.obj &
panelg.obj &
+ progdlgg.obj &
prop.obj &
propform.obj &
proplist.obj &
printps.obj: $(GENDIR)\printps.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
+progdlgg.obj: $(GENDIR)\progdlgg.cpp
+ *$(CCC) $(CPPFLAGS) $(IFLAGS) $<
+
prop.obj: $(GENDIR)\prop.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<