more warning fixes; removed references to wxToolBarBase from wxRTTI

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-07-22 01:42:41 +00:00
parent 0199503bf0
commit 2eb10e2a17
31 changed files with 89 additions and 50 deletions

View File

@@ -182,6 +182,9 @@ public:
// implement the base class pure virtual // implement the base class pure virtual
virtual wxEvent *Clone() const { return new wxDialUpEvent(*this); } virtual wxEvent *Clone() const { return new wxDialUpEvent(*this); }
private:
DECLARE_NO_COPY_CLASS(wxDialUpEvent)
}; };
// the type of dialup event handler function // the type of dialup event handler function

View File

@@ -99,7 +99,7 @@ protected:
wxLayoutAlignment m_alignment; wxLayoutAlignment m_alignment;
private: private:
DECLARE_DYNAMIC_CLASS(wxQueryLayoutInfoEvent) DECLARE_DYNAMIC_CLASS_NO_COPY(wxQueryLayoutInfoEvent)
}; };
typedef void (wxEvtHandler::*wxQueryLayoutInfoEventFunction)(wxQueryLayoutInfoEvent&); typedef void (wxEvtHandler::*wxQueryLayoutInfoEventFunction)(wxQueryLayoutInfoEvent&);
@@ -136,7 +136,7 @@ protected:
wxRect m_rect; wxRect m_rect;
private: private:
DECLARE_DYNAMIC_CLASS(wxCalculateLayoutEvent) DECLARE_DYNAMIC_CLASS_NO_COPY(wxCalculateLayoutEvent)
}; };
typedef void (wxEvtHandler::*wxCalculateLayoutEventFunction)(wxCalculateLayoutEvent&); typedef void (wxEvtHandler::*wxCalculateLayoutEventFunction)(wxCalculateLayoutEvent&);
@@ -192,7 +192,7 @@ private:
wxSize m_defaultSize; wxSize m_defaultSize;
private: private:
DECLARE_CLASS(wxSashLayoutWindow) DECLARE_DYNAMIC_CLASS_NO_COPY(wxSashLayoutWindow)
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
}; };

View File

@@ -232,7 +232,7 @@ private:
wxSashDragStatus m_dragStatus; wxSashDragStatus m_dragStatus;
private: private:
DECLARE_DYNAMIC_CLASS(wxSashEvent) DECLARE_DYNAMIC_CLASS_NO_COPY(wxSashEvent)
}; };
typedef void (wxEvtHandler::*wxSashEventFunction)(wxSashEvent&); typedef void (wxEvtHandler::*wxSashEventFunction)(wxSashEvent&);

View File

@@ -91,6 +91,7 @@ protected:
wxBitmap m_bitmap; wxBitmap m_bitmap;
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
DECLARE_NO_COPY_CLASS(wxSplashScreenWindow)
}; };

View File

@@ -121,10 +121,8 @@ protected:
private: private:
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxStatusBarGeneric) DECLARE_DYNAMIC_CLASS_NO_COPY(wxStatusBarGeneric)
}; };
#endif #endif
// _WX_GENERIC_STATUSBR_H_ // _WX_GENERIC_STATUSBR_H_
// vi:sts=4:sw=4:et

View File

@@ -91,7 +91,7 @@ public:
wxEnhMetaFile *Close(); wxEnhMetaFile *Close();
private: private:
DECLARE_DYNAMIC_CLASS(wxEnhMetaFileDC) DECLARE_DYNAMIC_CLASS_NO_COPY(wxEnhMetaFileDC)
}; };
#if wxUSE_DRAG_AND_DROP #if wxUSE_DRAG_AND_DROP
@@ -128,6 +128,8 @@ public:
protected: protected:
wxEnhMetaFile m_metafile; wxEnhMetaFile m_metafile;
DECLARE_NO_COPY_CLASS(wxEnhMetaFileDataObject)
}; };
@@ -160,6 +162,8 @@ public:
protected: protected:
wxEnhMetaFile m_metafile; wxEnhMetaFile m_metafile;
DECLARE_NO_COPY_CLASS(wxEnhMetaFileSimpleDataObject)
}; };
#endif // wxUSE_DRAG_AND_DROP #endif // wxUSE_DRAG_AND_DROP

View File

@@ -49,7 +49,7 @@ public:
} }
protected: protected:
DECLARE_DYNAMIC_CLASS(wxMiniFrame) DECLARE_DYNAMIC_CLASS_NO_COPY(wxMiniFrame)
}; };
#endif #endif

View File

@@ -150,7 +150,7 @@ private:
int m_nSel, // currently selected page int m_nSel, // currently selected page
m_nOldSel; // previously selected page m_nOldSel; // previously selected page
DECLARE_DYNAMIC_CLASS(wxTabEvent) DECLARE_DYNAMIC_CLASS_NO_COPY(wxTabEvent)
}; };
typedef void (wxEvtHandler::*wxTabEventFunction)(wxTabEvent&); typedef void (wxEvtHandler::*wxTabEventFunction)(wxTabEvent&);

View File

@@ -52,7 +52,7 @@ protected:
virtual wxSize DoGetBestSize() const; virtual wxSize DoGetBestSize() const;
private: private:
DECLARE_DYNAMIC_CLASS(wxToggleButton) DECLARE_DYNAMIC_CLASS_NO_COPY(wxToggleButton)
}; };
#endif // _WX_TOGGLEBUTTON_H_ #endif // _WX_TOGGLEBUTTON_H_

View File

@@ -48,7 +48,7 @@ public:
void Clear() { m_itemsSel.Clear(); m_count = 0; m_defaultState = FALSE; } void Clear() { m_itemsSel.Clear(); m_count = 0; m_defaultState = FALSE; }
// must be called when a new item is inserted/added // must be called when a new item is inserted/added
void OnItemAdd(size_t item) { wxFAIL_MSG( _T("TODO") ); } void OnItemAdd(size_t WXUNUSED(item)) { wxFAIL_MSG( _T("TODO") ); }
// must be called when an item is deleted // must be called when an item is deleted
void OnItemDelete(size_t item); void OnItemDelete(size_t item);

View File

@@ -164,7 +164,7 @@ protected:
private: private:
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxToolBarSimple) DECLARE_DYNAMIC_CLASS_NO_COPY(wxToolBarSimple)
}; };
#endif // wxUSE_TOOLBAR_SIMPLE #endif // wxUSE_TOOLBAR_SIMPLE

View File

@@ -146,10 +146,10 @@ wxRendererGeneric::DrawShadedRect(wxDC& dc,
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
void void
wxRendererGeneric::DrawHeaderButton(wxWindow *win, wxRendererGeneric::DrawHeaderButton(wxWindow * WXUNUSED(win),
wxDC& dc, wxDC& dc,
const wxRect& rect, const wxRect& rect,
int flags) int WXUNUSED(flags))
{ {
const int CORNER = 1; const int CORNER = 1;
@@ -177,7 +177,7 @@ wxRendererGeneric::DrawHeaderButton(wxWindow *win,
// draw the plus or minus sign // draw the plus or minus sign
void void
wxRendererGeneric::DrawTreeItemButton(wxWindow *win, wxRendererGeneric::DrawTreeItemButton(wxWindow * WXUNUSED(win),
wxDC& dc, wxDC& dc,
const wxRect& rect, const wxRect& rect,
int flags) int flags)

View File

@@ -79,13 +79,15 @@ public:
wxCoord m_y; wxCoord m_y;
wxCoord m_width; wxCoord m_width;
wxCoord m_height; wxCoord m_height;
DECLARE_NO_COPY_CLASS(wxToolBarToolSimple)
}; };
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxWin macros // wxWin macros
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxToolBarSimple, wxToolBarBase) IMPLEMENT_DYNAMIC_CLASS(wxToolBarSimple, wxControl)
#if !wxUSE_TOOLBAR_NATIVE && !defined(__WXUNIVERSAL__) #if !wxUSE_TOOLBAR_NATIVE && !defined(__WXUNIVERSAL__)
IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxToolBarSimple) IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxToolBarSimple)

View File

@@ -136,7 +136,7 @@ protected:
// wxWin macros // wxWin macros
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxToolBarBase) IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxControl)
// ============================================================================ // ============================================================================
// implementation // implementation

View File

@@ -136,7 +136,7 @@ protected:
// wxWin macros // wxWin macros
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxToolBarBase) IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxControl)
// ============================================================================ // ============================================================================
// implementation // implementation

View File

@@ -859,9 +859,14 @@ wxFSFile *wxHtmlParser::OpenURL(wxHtmlURLType WXUNUSED(type),
class wxMetaTagParser : public wxHtmlParser class wxMetaTagParser : public wxHtmlParser
{ {
public: public:
wxMetaTagParser() { }
wxObject* GetProduct() { return NULL; } wxObject* GetProduct() { return NULL; }
protected: protected:
virtual void AddText(const wxChar* WXUNUSED(txt)) {} virtual void AddText(const wxChar* WXUNUSED(txt)) {}
DECLARE_NO_COPY_CLASS(wxMetaTagParser)
}; };
class wxMetaTagHandler : public wxHtmlTagHandler class wxMetaTagHandler : public wxHtmlTagHandler
@@ -873,6 +878,8 @@ public:
private: private:
wxString *m_retval; wxString *m_retval;
DECLARE_NO_COPY_CLASS(wxMetaTagHandler)
}; };
bool wxMetaTagHandler::HandleTag(const wxHtmlTag& tag) bool wxMetaTagHandler::HandleTag(const wxHtmlTag& tag)

View File

@@ -23,7 +23,7 @@
#include "wx/bitmap.h" #include "wx/bitmap.h"
#if !USE_SHARED_LIBRARY #if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxToolBarBase) IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxControl)
BEGIN_EVENT_TABLE(wxToolBar, wxToolBarBase) BEGIN_EVENT_TABLE(wxToolBar, wxToolBarBase)
EVT_MOUSE_EVENTS( wxToolBar::OnMouse ) EVT_MOUSE_EVENTS( wxToolBar::OnMouse )

View File

@@ -23,7 +23,7 @@
#include "wx/bitmap.h" #include "wx/bitmap.h"
#if !USE_SHARED_LIBRARY #if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxToolBarBase) IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxControl)
BEGIN_EVENT_TABLE(wxToolBar, wxToolBarBase) BEGIN_EVENT_TABLE(wxToolBar, wxToolBarBase)
EVT_MOUSE_EVENTS( wxToolBar::OnMouse ) EVT_MOUSE_EVENTS( wxToolBar::OnMouse )

View File

@@ -53,7 +53,7 @@
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#if !USE_SHARED_LIBRARY #if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxToolBarBase) IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxControl)
#endif #endif
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -158,6 +158,8 @@ private:
COLORREF m_colFgOld, m_colBgOld; COLORREF m_colFgOld, m_colBgOld;
bool m_changed; bool m_changed;
DECLARE_NO_COPY_CLASS(wxColourChanger)
}; };
// this class saves the old stretch blit mode during its life time // this class saves the old stretch blit mode during its life time
@@ -186,6 +188,8 @@ private:
const HDC m_hdc; const HDC m_hdc;
int m_modeOld; int m_modeOld;
DECLARE_NO_COPY_CLASS(StretchBltModeChanger)
}; };
// =========================================================================== // ===========================================================================

View File

@@ -408,7 +408,7 @@ void wxPrinterDC::DoDrawBitmap(const wxBitmap& bmp,
bool wxPrinterDC::DoBlit(wxCoord xdest, wxCoord ydest, bool wxPrinterDC::DoBlit(wxCoord xdest, wxCoord ydest,
wxCoord width, wxCoord height, wxCoord width, wxCoord height,
wxDC *source, wxDC *source,
wxCoord xsrc, wxCoord ysrc, wxCoord WXUNUSED(xsrc), wxCoord WXUNUSED(ysrc),
int WXUNUSED(rop), bool useMask, int WXUNUSED(rop), bool useMask,
wxCoord WXUNUSED(xsrcMask), wxCoord WXUNUSED(ysrcMask)) wxCoord WXUNUSED(xsrcMask), wxCoord WXUNUSED(ysrcMask))
{ {

View File

@@ -215,6 +215,8 @@ private:
private: private:
wxDialUpManagerMSW *m_dialUpManager; wxDialUpManagerMSW *m_dialUpManager;
DECLARE_NO_COPY_CLASS(RasTimer)
} m_timerStatusPolling; } m_timerStatusPolling;
// thread handle for the thread sitting on connection change event // thread handle for the thread sitting on connection change event
@@ -264,6 +266,8 @@ private:
// this flag tells us whether a call to RasDial() is in progress // this flag tells us whether a call to RasDial() is in progress
static wxDialUpManagerMSW *ms_dialer; static wxDialUpManagerMSW *ms_dialer;
DECLARE_NO_COPY_CLASS(wxDialUpManagerMSW)
}; };
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@@ -1236,7 +1240,7 @@ static LRESULT APIENTRY wxRasStatusWindowProc(HWND hWnd, UINT message,
return 0; return 0;
} }
static void WINAPI wxRasDialFunc(UINT unMsg, static void WINAPI wxRasDialFunc(UINT WXUNUSED(unMsg),
RASCONNSTATE rasconnstate, RASCONNSTATE rasconnstate,
DWORD dwError) DWORD dwError)
{ {

View File

@@ -167,9 +167,9 @@ static wxDisplayInfoArray *gs_displays = NULL;
static BOOL CALLBACK wxmswMonitorEnumProc ( static BOOL CALLBACK wxmswMonitorEnumProc (
HMONITOR hMonitor, // handle to display monitor HMONITOR hMonitor, // handle to display monitor
HDC hdcMonitor, // handle to monitor-appropriate device context (NULL) HDC WXUNUSED(hdcMonitor), // handle to monitor-appropriate device context
LPRECT lprcMonitor, // pointer to monitor intersection rectangle LPRECT lprcMonitor, // pointer to monitor intersection rectangle
LPARAM dwData // data passed from EnumDisplayMonitors (unused) LPARAM WXUNUSED(dwData) // data passed from EnumDisplayMonitors (unused)
) )
{ {
wxDisplayInfo *info = new wxDisplayInfo(); wxDisplayInfo *info = new wxDisplayInfo();
@@ -193,9 +193,9 @@ static BOOL CALLBACK wxmswMonitorEnumProc (
BOOL PASCAL BOOL PASCAL
wxDDEnumExCallback(GUID *pGuid, wxDDEnumExCallback(GUID *pGuid,
LPTSTR driverDescription, LPTSTR WXUNUSED(driverDescription),
LPTSTR driverName, LPTSTR driverName,
LPVOID lpContext, LPVOID WXUNUSED(lpContext),
HMONITOR hmon) HMONITOR hmon)
{ {
if ( pGuid ) if ( pGuid )
@@ -539,7 +539,7 @@ wxString wxDisplay::GetNameForEnumSettings() const
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
wxArrayVideoModes wxArrayVideoModes
wxDisplay::DoGetModesDirectX(const wxVideoMode& modeMatch) const wxDisplay::DoGetModesDirectX(const wxVideoMode& WXUNUSED(modeMatch)) const
{ {
wxArrayVideoModes modes; wxArrayVideoModes modes;

View File

@@ -200,28 +200,28 @@ wxString wxIniConfig::GetKeyName(const wxString& szKey) const
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// not implemented // not implemented
bool wxIniConfig::GetFirstGroup(wxString& str, long& lIndex) const bool wxIniConfig::GetFirstGroup(wxString& WXUNUSED(str), long& WXUNUSED(lIndex)) const
{ {
wxFAIL_MSG("not implemented"); wxFAIL_MSG("not implemented");
return FALSE; return FALSE;
} }
bool wxIniConfig::GetNextGroup (wxString& str, long& lIndex) const bool wxIniConfig::GetNextGroup (wxString& WXUNUSED(str), long& WXUNUSED(lIndex)) const
{ {
wxFAIL_MSG("not implemented"); wxFAIL_MSG("not implemented");
return FALSE; return FALSE;
} }
bool wxIniConfig::GetFirstEntry(wxString& str, long& lIndex) const bool wxIniConfig::GetFirstEntry(wxString& WXUNUSED(str), long& WXUNUSED(lIndex)) const
{ {
wxFAIL_MSG("not implemented"); wxFAIL_MSG("not implemented");
return FALSE; return FALSE;
} }
bool wxIniConfig::GetNextEntry (wxString& str, long& lIndex) const bool wxIniConfig::GetNextEntry (wxString& WXUNUSED(str), long& WXUNUSED(lIndex)) const
{ {
wxFAIL_MSG("not implemented"); wxFAIL_MSG("not implemented");
@@ -233,28 +233,28 @@ bool wxIniConfig::GetNextEntry (wxString& str, long& lIndex) const
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// not implemented // not implemented
size_t wxIniConfig::GetNumberOfEntries(bool bRecursive) const size_t wxIniConfig::GetNumberOfEntries(bool WXUNUSED(bRecursive)) const
{ {
wxFAIL_MSG("not implemented"); wxFAIL_MSG("not implemented");
return (size_t)-1; return (size_t)-1;
} }
size_t wxIniConfig::GetNumberOfGroups(bool bRecursive) const size_t wxIniConfig::GetNumberOfGroups(bool WXUNUSED(bRecursive)) const
{ {
wxFAIL_MSG("not implemented"); wxFAIL_MSG("not implemented");
return (size_t)-1; return (size_t)-1;
} }
bool wxIniConfig::HasGroup(const wxString& strName) const bool wxIniConfig::HasGroup(const wxString& WXUNUSED(strName)) const
{ {
wxFAIL_MSG("not implemented"); wxFAIL_MSG("not implemented");
return FALSE; return FALSE;
} }
bool wxIniConfig::HasEntry(const wxString& strName) const bool wxIniConfig::HasEntry(const wxString& WXUNUSED(strName)) const
{ {
wxFAIL_MSG("not implemented"); wxFAIL_MSG("not implemented");
@@ -449,13 +449,15 @@ bool wxIniConfig::DeleteAll()
return TRUE; return TRUE;
} }
bool wxIniConfig::RenameEntry(const wxString& oldName, const wxString& newName) bool wxIniConfig::RenameEntry(const wxString& WXUNUSED(oldName),
const wxString& WXUNUSED(newName))
{ {
// Not implemented // Not implemented
return FALSE; return FALSE;
} }
bool wxIniConfig::RenameGroup(const wxString& oldName, const wxString& newName) bool wxIniConfig::RenameGroup(const wxString& WXUNUSED(oldName),
const wxString& WXUNUSED(newName))
{ {
// Not implemented // Not implemented
return FALSE; return FALSE;

View File

@@ -1134,6 +1134,8 @@ protected:
return TRUE; return TRUE;
} }
#endif #endif
DECLARE_NO_COPY_CLASS(CFSTR_SHELLURLDataObject)
}; };

View File

@@ -36,6 +36,11 @@
class WXDLLEXPORT wxRendererMSW : public wxDelegateRendererNative class WXDLLEXPORT wxRendererMSW : public wxDelegateRendererNative
{ {
public:
wxRendererMSW() { }
private:
DECLARE_NO_COPY_CLASS(wxRendererMSW)
}; };
// ============================================================================ // ============================================================================

View File

@@ -121,7 +121,7 @@ wxScrollBar::~wxScrollBar(void)
} }
bool wxScrollBar::MSWOnScroll(int WXUNUSED(orientation), WXWORD wParam, bool wxScrollBar::MSWOnScroll(int WXUNUSED(orientation), WXWORD wParam,
WXWORD pos, WXHWND control) WXWORD pos, WXHWND WXUNUSED(control))
{ {
// current and max positions // current and max positions
int position, int position,

View File

@@ -123,7 +123,7 @@
// wxWin macros // wxWin macros
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxToolBarBase) IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxControl)
BEGIN_EVENT_TABLE(wxToolBar, wxToolBarBase) BEGIN_EVENT_TABLE(wxToolBar, wxToolBarBase)
EVT_MOUSE_EVENTS(wxToolBar::OnMouseEvent) EVT_MOUSE_EVENTS(wxToolBar::OnMouseEvent)
@@ -178,6 +178,8 @@ public:
private: private:
size_t m_nSepCount; size_t m_nSepCount;
DECLARE_NO_COPY_CLASS(wxToolBarTool)
}; };
@@ -1175,7 +1177,7 @@ void wxToolBar::OnMouseEvent(wxMouseEvent& event)
} }
} }
bool wxToolBar::HandleSize(WXWPARAM wParam, WXLPARAM lParam) bool wxToolBar::HandleSize(WXWPARAM WXUNUSED(wParam), WXLPARAM lParam)
{ {
// calculate our minor dimension ourselves - we're confusing the standard // calculate our minor dimension ourselves - we're confusing the standard
// logic (TB_AUTOSIZE) with our horizontal toolbars and other hacks // logic (TB_AUTOSIZE) with our horizontal toolbars and other hacks
@@ -1317,7 +1319,7 @@ bool wxToolBar::HandlePaint(WXWPARAM wParam, WXLPARAM lParam)
return TRUE; return TRUE;
} }
void wxToolBar::HandleMouseMove(WXWPARAM wParam, WXLPARAM lParam) void wxToolBar::HandleMouseMove(WXWPARAM WXUNUSED(wParam), WXLPARAM lParam)
{ {
wxCoord x = GET_X_LPARAM(lParam), wxCoord x = GET_X_LPARAM(lParam),
y = GET_Y_LPARAM(lParam); y = GET_Y_LPARAM(lParam);

View File

@@ -1664,7 +1664,7 @@ void wxTextCtrl::OnRedo(wxCommandEvent& WXUNUSED(event))
Redo(); Redo();
} }
void wxTextCtrl::OnDelete(wxCommandEvent& event) void wxTextCtrl::OnDelete(wxCommandEvent& WXUNUSED(event))
{ {
long from, to; long from, to;
GetSelection(& from, & to); GetSelection(& from, & to);
@@ -1672,7 +1672,7 @@ void wxTextCtrl::OnDelete(wxCommandEvent& event)
Remove(from, to); Remove(from, to);
} }
void wxTextCtrl::OnSelectAll(wxCommandEvent& event) void wxTextCtrl::OnSelectAll(wxCommandEvent& WXUNUSED(event))
{ {
SetSelection(-1, -1); SetSelection(-1, -1);
} }
@@ -1740,7 +1740,7 @@ void wxTextCtrl::OnRightClick(wxMouseEvent& event)
event.Skip(); event.Skip();
} }
void wxTextCtrl::OnSetFocus(wxFocusEvent& event) void wxTextCtrl::OnSetFocus(wxFocusEvent& WXUNUSED(event))
{ {
// be sure the caret remains invisible if the user had hidden it // be sure the caret remains invisible if the user had hidden it
if ( !m_isNativeCaretShown ) if ( !m_isNativeCaretShown )

View File

@@ -389,6 +389,8 @@ private:
wxMutex& m_mutex; wxMutex& m_mutex;
wxSemaphore m_semaphore; wxSemaphore m_semaphore;
DECLARE_NO_COPY_CLASS(wxConditionInternal)
}; };
wxConditionInternal::wxConditionInternal(wxMutex& mutex) wxConditionInternal::wxConditionInternal(wxMutex& mutex)

View File

@@ -906,7 +906,10 @@ void wxTopLevelWindowMSW::OnActivate(wxActivateEvent& event)
// the DialogProc for all wxWindows dialogs // the DialogProc for all wxWindows dialogs
LONG APIENTRY _EXPORT LONG APIENTRY _EXPORT
wxDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) wxDlgProc(HWND WXUNUSED(hDlg),
UINT message,
WPARAM WXUNUSED(wParam),
LPARAM WXUNUSED(lParam))
{ {
switch ( message ) switch ( message )
{ {