warnings (and some errors) fixes for wxUniv DLL build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-08-03 20:58:56 +00:00
parent 05e3a383e0
commit 61fef19b85
27 changed files with 168 additions and 138 deletions

View File

@@ -141,8 +141,8 @@ private:
static wxHelpProvider *ms_helpProvider;
};
WX_DECLARE_HASH_MAP( long, wxString, wxIntegerHash, wxIntegerEqual,
wxLongToStringHashMap );
WX_DECLARE_EXPORTED_HASH_MAP( long, wxString, wxIntegerHash, wxIntegerEqual,
wxLongToStringHashMap );
// wxSimpleHelpProvider is an implementation of wxHelpProvider which supports
// only plain text help strings and shows the string associated with the

View File

@@ -175,8 +175,8 @@ public:
#endif
// no icon
void SetIcon( const wxIcon &icon ) { /*m_icons = wxIconBundle( icon );*/}
void SetIcons( const wxIconBundle &icons ) { /*m_icons = icons;*/ }
void SetIcon( const wxIcon& WXUNUSED(icon) ) { }
void SetIcons( const wxIconBundle& WXUNUSED(icons) ) { }
// no maximize etc
virtual void Maximize( bool WXUNUSED(maximize) = TRUE) { /* Has no effect */ }

View File

@@ -277,7 +277,7 @@ public:
virtual int GetSelection() const;
void SetSelection(int n) { Select(n); }
void SetStringSelection(const wxString& s) { }
void SetStringSelection(const wxString& WXUNUSED(s)) { }
// we have to redefine these functions here to avoid ambiguities in classes
// deriving from us which would arise otherwise because we inherit these

View File

@@ -24,7 +24,7 @@
// fwd declarations
class WXDLLEXPORT wxMenuInfo;
WX_DECLARE_OBJARRAY(wxMenuInfo, wxMenuInfoArray);
WX_DECLARE_EXPORTED_OBJARRAY(wxMenuInfo, wxMenuInfoArray);
class WXDLLEXPORT wxMenuGeometryInfo;
class WXDLLEXPORT wxPopupMenuWindow;

View File

@@ -21,7 +21,7 @@ class WXDLLEXPORT wxRadioButton;
#include "wx/statbox.h"
#include "wx/dynarray.h"
WX_DEFINE_ARRAY(wxRadioButton *, wxArrayRadioButtons);
WX_DEFINE_EXPORTED_ARRAY_NO_PTR(wxRadioButton *, wxArrayRadioButtons);
// ----------------------------------------------------------------------------
// wxRadioBox: a box full of radio buttons

View File

@@ -671,7 +671,7 @@ public:
wxOrientation orient,
int start,
int end,
int step = 1,
int WXUNUSED(step) = 1,
int flags = 0,
long style = 0)
{ m_renderer->DrawSliderTicks(dc, rect, lenThumb, orient,

View File

@@ -255,7 +255,7 @@ WX_DECLARE_LIST(wxListItemData, wxListItemDataList);
#include "wx/listimpl.cpp"
WX_DEFINE_LIST(wxListItemDataList);
class WXDLLEXPORT wxListLineData
class wxListLineData
{
public:
// the list of subitems: only may have more than one item in report mode
@@ -476,7 +476,7 @@ WX_DECLARE_LIST(wxListHeaderData, wxListHeaderDataList);
#include "wx/listimpl.cpp"
WX_DEFINE_LIST(wxListHeaderDataList);
class WXDLLEXPORT wxListMainWindow : public wxScrolledWindow
class wxListMainWindow : public wxScrolledWindow
{
public:
wxListMainWindow();
@@ -1214,7 +1214,7 @@ void wxListLineData::CalculateSize( wxDC *dc, int spacing )
}
void wxListLineData::SetPosition( int x, int y,
int window_width,
int WXUNUSED(window_width),
int spacing )
{
wxListItemDataList::compatibility_iterator node = m_items.GetFirst();

View File

@@ -571,7 +571,7 @@ void wxGenericMDIChildFrame::OnMenuHighlight(wxMenuEvent& event)
#endif // wxUSE_STATUSBAR
}
void wxGenericMDIChildFrame::OnActivate(wxActivateEvent& event)
void wxGenericMDIChildFrame::OnActivate(wxActivateEvent& WXUNUSED(event))
{
// Do mothing.
}

View File

@@ -49,7 +49,7 @@
#include "wx/statbox.h"
#endif
#if wxUSE_OWNER_DRAWN
#if wxUSE_OWNER_DRAWN && !defined(__WXUNIVERSAL__)
#include "wx/ownerdrw.h"
#endif
@@ -3520,7 +3520,16 @@ bool wxWindowMSW::HandleSetCursor(WXHWND WXUNUSED(hWnd),
// owner drawn stuff
// ---------------------------------------------------------------------------
bool wxWindowMSW::MSWOnDrawItem(int id, WXDRAWITEMSTRUCT *itemStruct)
#if (wxUSE_OWNER_DRAWN && wxUSE_MENUS_NATIVE) || \
(wxUSE_CONTROLS && !defined(__WXUNIVERSAL__))
#define WXUNUSED_UNLESS_ODRAWN(param) param
#else
#define WXUNUSED_UNLESS_ODRAWN(param)
#endif
bool
wxWindowMSW::MSWOnDrawItem(int WXUNUSED_UNLESS_ODRAWN(id),
WXDRAWITEMSTRUCT * WXUNUSED_UNLESS_ODRAWN(itemStruct))
{
#if wxUSE_OWNER_DRAWN
@@ -3572,9 +3581,12 @@ bool wxWindowMSW::MSWOnDrawItem(int id, WXDRAWITEMSTRUCT *itemStruct)
return FALSE;
}
bool wxWindowMSW::MSWOnMeasureItem(int id, WXMEASUREITEMSTRUCT *itemStruct)
bool
wxWindowMSW::MSWOnMeasureItem(int WXUNUSED_UNLESS_ODRAWN(id),
WXMEASUREITEMSTRUCT *
WXUNUSED_UNLESS_ODRAWN(itemStruct))
{
#if wxUSE_OWNER_DRAWN && !defined(__WXUNIVERSAL__)
#if wxUSE_OWNER_DRAWN && wxUSE_MENUS_NATIVE
// is it a menu item?
MEASUREITEMSTRUCT *pMeasureStruct = (MEASUREITEMSTRUCT *)itemStruct;
if ( id == 0 && pMeasureStruct->CtlType == ODT_MENU )

View File

@@ -82,7 +82,7 @@ bool wxButton::Create(wxWindow *parent,
style |= wxALIGN_CENTRE_HORIZONTAL | wxALIGN_CENTRE_VERTICAL;
}
if ( !wxControl::Create(parent, id, pos, size, style, wxDefaultValidator, name) )
if ( !wxControl::Create(parent, id, pos, size, style, validator, name) )
return FALSE;
SetLabel(label);
@@ -395,8 +395,8 @@ bool wxStdButtonInputHandler::HandleMouseMove(wxInputConsumer *consumer,
return wxStdInputHandler::HandleMouseMove(consumer, event);
}
bool wxStdButtonInputHandler::HandleFocus(wxInputConsumer *consumer,
const wxFocusEvent& event)
bool wxStdButtonInputHandler::HandleFocus(wxInputConsumer * WXUNUSED(consumer),
const wxFocusEvent& WXUNUSED(event))
{
// buttons change appearance when they get/lose focus, so return TRUE to
// refresh
@@ -404,7 +404,7 @@ bool wxStdButtonInputHandler::HandleFocus(wxInputConsumer *consumer,
}
bool wxStdButtonInputHandler::HandleActivation(wxInputConsumer *consumer,
bool activated)
bool WXUNUSED(activated))
{
// the default button changes appearance when the app is [de]activated, so
// return TRUE to refresh

View File

@@ -67,7 +67,7 @@ bool wxCheckBox::Create(wxWindow *parent,
const wxValidator& validator,
const wxString &name)
{
if ( !wxControl::Create(parent, id, pos, size, style, wxDefaultValidator, name) )
if ( !wxControl::Create(parent, id, pos, size, style, validator, name) )
return FALSE;
SetLabel(label);
@@ -279,7 +279,7 @@ wxStdCheckboxInputHandler::wxStdCheckboxInputHandler(wxInputHandler *inphand)
}
bool wxStdCheckboxInputHandler::HandleActivation(wxInputConsumer *consumer,
bool activated)
bool WXUNUSED(activated))
{
// only the focused checkbox appearance changes when the app gains/loses
// activation

View File

@@ -43,7 +43,7 @@ bool wxChoice::Create(wxWindow *parent, wxWindowID id,
const wxPoint& pos,
const wxSize& size,
int n, const wxString choices[],
long style,
long WXUNUSED(style),
const wxValidator& validator,
const wxString& name)
{

View File

@@ -93,7 +93,7 @@ public:
}
protected:
void OnButton(wxCommandEvent& event) { m_combo->ShowPopup(); }
void OnButton(wxCommandEvent& WXUNUSED(event)) { m_combo->ShowPopup(); }
virtual wxSize DoGetBestClientSize() const
{
@@ -290,7 +290,7 @@ wxComboControl::~wxComboControl()
// ----------------------------------------------------------------------------
void wxComboControl::DoSetSize(int x, int y,
int width, int height,
int width, int WXUNUSED(height),
int sizeFlags)
{
// combo height is always fixed

View File

@@ -545,7 +545,7 @@ void wxControlRenderer::DrawBitmap(wxDC &dc,
}
void wxControlRenderer::DrawScrollbar(const wxScrollBar *scrollbar,
int thumbPosOld)
int WXUNUSED(thumbPosOld))
{
// we will only redraw the parts which must be redrawn and not everything
wxRegion rgnUpdate = scrollbar->GetUpdateRegion();

View File

@@ -99,9 +99,9 @@ void wxInputConsumer::OnMouse(wxMouseEvent& event)
// the actions
// ----------------------------------------------------------------------------
bool wxInputConsumer::PerformAction(const wxControlAction& action,
long numArg,
const wxString& strArg)
bool wxInputConsumer::PerformAction(const wxControlAction& WXUNUSED(action),
long WXUNUSED(numArg),
const wxString& WXUNUSED(strArg))
{
return FALSE;
}

View File

@@ -106,7 +106,7 @@ bool wxListBox::Create(wxWindow *parent,
#endif
if ( !wxControl::Create(parent, id, pos, size, style,
wxDefaultValidator, name) )
validator, name) )
return FALSE;
SetWindow(this);
@@ -769,7 +769,7 @@ void wxListBox::DoSetSize(int x, int y,
height = ((height - hBorders + hLine - 1) / hLine)*hLine + hBorders;
}
wxListBoxBase::DoSetSize(x, y, width, height);
wxListBoxBase::DoSetSize(x, y, width, height, sizeFlags);
}
wxSize wxListBox::DoGetBestClientSize() const

View File

@@ -1389,8 +1389,9 @@ bool wxStdNotebookInputHandler::HandleMouseMove(wxInputConsumer *consumer,
return wxStdInputHandler::HandleMouseMove(consumer, event);
}
bool wxStdNotebookInputHandler::HandleFocus(wxInputConsumer *consumer,
const wxFocusEvent& event)
bool
wxStdNotebookInputHandler::HandleFocus(wxInputConsumer *consumer,
const wxFocusEvent& WXUNUSED(event))
{
HandleFocusChange(consumer);

View File

@@ -60,7 +60,7 @@ bool wxRadioButton::Create(wxWindow *parent,
const wxString &name)
{
if ( !wxCheckBox::Create(parent, id, label, pos, size, style,
wxDefaultValidator, name) )
validator, name) )
{
return FALSE;
}

View File

@@ -147,7 +147,7 @@ bool wxScrollBar::Create(wxWindow *parent,
// the scrollbars never have the border
style &= ~wxBORDER_MASK;
if ( !wxControl::Create(parent, id, pos, size, style, wxDefaultValidator, name) )
if ( !wxControl::Create(parent, id, pos, size, style, validator, name) )
return FALSE;
SetBestSize(size);

View File

@@ -1026,8 +1026,9 @@ bool wxStdSliderButtonInputHandler::HandleMouseMove(wxInputConsumer *consumer,
return wxStdInputHandler::HandleMouseMove(consumer, event);
}
bool wxStdSliderButtonInputHandler::HandleFocus(wxInputConsumer *consumer,
const wxFocusEvent& event)
bool
wxStdSliderButtonInputHandler::HandleFocus(wxInputConsumer * WXUNUSED(consumer),
const wxFocusEvent& WXUNUSED(event))
{
// slider's appearance changes when it gets/loses focus
return TRUE;

View File

@@ -4899,8 +4899,9 @@ bool wxStdTextCtrlInputHandler::HandleMouseMove(wxInputConsumer *consumer,
return wxStdInputHandler::HandleMouseMove(consumer, event);
}
bool wxStdTextCtrlInputHandler::HandleFocus(wxInputConsumer *consumer,
const wxFocusEvent& event)
bool
wxStdTextCtrlInputHandler::HandleFocus(wxInputConsumer *consumer,
const wxFocusEvent& WXUNUSED(event))
{
wxTextCtrl *text = wxStaticCast(consumer->GetInputWindow(), wxTextCtrl);

View File

@@ -195,15 +195,15 @@ public:
wxOrientation orient,
int flags = 0,
long style = 0);
virtual void DrawSliderTicks(wxDC& dc,
const wxRect& rect,
int lenThumb,
wxOrientation orient,
int start,
int end,
int step = 1,
int flags = 0,
long style = 0)
virtual void DrawSliderTicks(wxDC& WXUNUSED(dc),
const wxRect& WXUNUSED(rect),
int WXUNUSED(lenThumb),
wxOrientation WXUNUSED(orient),
int WXUNUSED(start),
int WXUNUSED(end),
int WXUNUSED(step) = 1,
int WXUNUSED(flags) = 0,
long WXUNUSED(style) = 0)
{
// we don't have the ticks in GTK version
}
@@ -591,7 +591,7 @@ protected:
// wxGTKTheme
// ----------------------------------------------------------------------------
WX_DEFINE_ARRAY(wxInputHandler *, wxArrayHandlers);
WX_DEFINE_ARRAY_NO_PTR(wxInputHandler *, wxArrayHandlers);
class wxGTKTheme : public wxTheme
{
@@ -980,7 +980,7 @@ void wxGTKRenderer::DrawAntiRaisedBorder(wxDC& dc, wxRect *rect)
void wxGTKRenderer::DrawBorder(wxDC& dc,
wxBorder border,
const wxRect& rectTotal,
int flags,
int WXUNUSED(flags),
wxRect *rectIn)
{
size_t width;
@@ -1634,7 +1634,7 @@ void wxGTKRenderer::DrawToolBarButton(wxDC& dc,
const wxBitmap& bitmap,
const wxRect& rectOrig,
int flags,
long style)
long WXUNUSED(style))
{
// we don't draw the separators at all
if ( !label.empty() || bitmap.Ok() )
@@ -1663,7 +1663,7 @@ void wxGTKRenderer::DrawToolBarButton(wxDC& dc,
// text control
// ----------------------------------------------------------------------------
wxRect wxGTKRenderer::GetTextTotalArea(const wxTextCtrl *text,
wxRect wxGTKRenderer::GetTextTotalArea(const wxTextCtrl * WXUNUSED(text),
const wxRect& rect) const
{
wxRect rectTotal = rect;
@@ -1897,19 +1897,19 @@ wxSize wxGTKRenderer::GetSliderThumbSize(const wxRect& rect,
}
wxRect wxGTKRenderer::GetSliderShaftRect(const wxRect& rect,
int lenThumb,
int WXUNUSED(lenThumb),
wxOrientation WXUNUSED(orient),
long style) const
long WXUNUSED(style)) const
{
return rect.Deflate(2*BORDER_THICKNESS, 2*BORDER_THICKNESS);
}
void wxGTKRenderer::DrawSliderShaft(wxDC& dc,
const wxRect& rectOrig,
int lenThumb,
wxOrientation orient,
int WXUNUSED(lenThumb),
wxOrientation WXUNUSED(orient),
int flags,
long style,
long WXUNUSED(style),
wxRect *rectShaft)
{
wxRect rect = rectOrig;
@@ -1936,8 +1936,8 @@ void wxGTKRenderer::DrawSliderShaft(wxDC& dc,
void wxGTKRenderer::DrawSliderThumb(wxDC& dc,
const wxRect& rectOrig,
wxOrientation orient,
int flags,
long style)
int WXUNUSED(flags),
long WXUNUSED(style))
{
// draw the thumb border
wxRect rect = rectOrig;
@@ -2227,15 +2227,16 @@ wxMenuGeometryInfo *wxGTKRenderer::GetMenuGeometry(wxWindow *win,
// status bar
// ----------------------------------------------------------------------------
wxSize wxGTKRenderer::GetStatusBarBorders(wxCoord *borderBetweenFields) const
wxSize
wxGTKRenderer::GetStatusBarBorders(wxCoord * WXUNUSED(borderBetweenFields)) const
{
return wxSize(0, 0);
}
void wxGTKRenderer::DrawStatusField(wxDC& dc,
const wxRect& rect,
const wxString& label,
int flags)
void wxGTKRenderer::DrawStatusField(wxDC& WXUNUSED(dc),
const wxRect& WXUNUSED(rect),
const wxString& WXUNUSED(label),
int WXUNUSED(flags))
{
}
@@ -2304,7 +2305,7 @@ void wxGTKRenderer::GetComboBitmaps(wxBitmap *bmpNormal,
void wxGTKRenderer::DoDrawBackground(wxDC& dc,
const wxColour& col,
const wxRect& rect,
wxWindow *window )
wxWindow * WXUNUSED(window))
{
wxBrush brush(col, wxSOLID);
dc.SetBrush(brush);
@@ -2650,7 +2651,7 @@ void wxGTKRenderer::DrawScrollbarThumb(wxDC& dc,
void wxGTKRenderer::DrawScrollbarShaft(wxDC& dc,
wxOrientation orient,
const wxRect& rect,
int flags)
int WXUNUSED(flags))
{
wxRect rectBar = rect;
DrawThumbBorder(dc, &rectBar, orient);
@@ -2756,60 +2757,65 @@ void wxGTKRenderer::AdjustSize(wxSize *size, const wxWindow *window)
// top level windows
// ----------------------------------------------------------------------------
void wxGTKRenderer::DrawFrameTitleBar(wxDC& dc,
const wxRect& rect,
const wxString& title,
const wxIcon& icon,
int flags,
int specialButton,
int specialButtonFlag)
void wxGTKRenderer::DrawFrameTitleBar(wxDC& WXUNUSED(dc),
const wxRect& WXUNUSED(rect),
const wxString& WXUNUSED(title),
const wxIcon& WXUNUSED(icon),
int WXUNUSED(flags),
int WXUNUSED(specialButton),
int WXUNUSED(specialButtonFlag))
{
}
void wxGTKRenderer::DrawFrameBorder(wxDC& dc,
const wxRect& rect,
int flags)
void wxGTKRenderer::DrawFrameBorder(wxDC& WXUNUSED(dc),
const wxRect& WXUNUSED(rect),
int WXUNUSED(flags))
{
}
void wxGTKRenderer::DrawFrameBackground(wxDC& dc,
const wxRect& rect,
int flags)
void wxGTKRenderer::DrawFrameBackground(wxDC& WXUNUSED(dc),
const wxRect& WXUNUSED(rect),
int WXUNUSED(flags))
{
}
void wxGTKRenderer::DrawFrameTitle(wxDC& dc,
const wxRect& rect,
const wxString& title,
int flags)
void wxGTKRenderer::DrawFrameTitle(wxDC& WXUNUSED(dc),
const wxRect& WXUNUSED(rect),
const wxString& WXUNUSED(title),
int WXUNUSED(flags))
{
}
void wxGTKRenderer::DrawFrameIcon(wxDC& dc,
const wxRect& rect,
const wxIcon& icon,
int flags)
void wxGTKRenderer::DrawFrameIcon(wxDC& WXUNUSED(dc),
const wxRect& WXUNUSED(rect),
const wxIcon& WXUNUSED(icon),
int WXUNUSED(flags))
{
}
void wxGTKRenderer::DrawFrameButton(wxDC& dc,
wxCoord x, wxCoord y,
int button,
int flags)
void wxGTKRenderer::DrawFrameButton(wxDC& WXUNUSED(dc),
wxCoord WXUNUSED(x),
wxCoord WXUNUSED(y),
int WXUNUSED(button),
int WXUNUSED(flags))
{
}
wxRect wxGTKRenderer::GetFrameClientArea(const wxRect& rect, int flags) const
wxRect
wxGTKRenderer::GetFrameClientArea(const wxRect& rect,
int WXUNUSED(flags)) const
{
return rect;
}
wxSize wxGTKRenderer::GetFrameTotalSize(const wxSize& clientSize, int flags) const
wxSize
wxGTKRenderer::GetFrameTotalSize(const wxSize& clientSize,
int WXUNUSED(flags)) const
{
return clientSize;
}
wxSize wxGTKRenderer::GetFrameMinSize(int flags) const
wxSize wxGTKRenderer::GetFrameMinSize(int WXUNUSED(flags)) const
{
return wxSize(0,0);
}
@@ -2819,7 +2825,10 @@ wxSize wxGTKRenderer::GetFrameIconSize() const
return wxSize(-1, -1);
}
int wxGTKRenderer::HitTestFrame(const wxRect& rect, const wxPoint& pt, int flags) const
int
wxGTKRenderer::HitTestFrame(const wxRect& WXUNUSED(rect),
const wxPoint& WXUNUSED(pt),
int WXUNUSED(flags)) const
{
return wxHT_TOPLEVEL_CLIENT_AREA;
}
@@ -4462,9 +4471,9 @@ wxGTKInputHandler::wxGTKInputHandler(wxGTKRenderer *renderer)
m_renderer = renderer;
}
bool wxGTKInputHandler::HandleKey(wxInputConsumer *control,
const wxKeyEvent& event,
bool pressed)
bool wxGTKInputHandler::HandleKey(wxInputConsumer * WXUNUSED(control),
const wxKeyEvent& WXUNUSED(event),
bool WXUNUSED(pressed))
{
return FALSE;
}

View File

@@ -87,10 +87,10 @@ public:
wxMetalRenderer(wxRenderer *renderer, wxColourScheme* scheme);
virtual void DrawButtonSurface(wxDC& dc,
const wxColour& col,
const wxColour& WXUNUSED(col),
const wxRect& rect,
int flags )
{ DrawMetal( dc, rect ); }
int WXUNUSED(flags))
{ DrawMetal(dc, rect); }
virtual void DrawScrollbarThumb(wxDC& dc,
wxOrientation orient,
@@ -141,7 +141,7 @@ private:
// wxMetalTheme
// ----------------------------------------------------------------------------
WX_DEFINE_ARRAY(wxInputHandler *, wxArrayHandlers);
WX_DEFINE_ARRAY_NO_PTR(wxInputHandler *, wxArrayHandlers);
class wxMetalTheme : public wxTheme
{
@@ -406,9 +406,9 @@ wxMetalRenderer::wxMetalRenderer(wxRenderer *renderer, wxColourScheme *scheme)
}
void wxMetalRenderer::DrawScrollbarThumb(wxDC& dc,
wxOrientation orient,
wxOrientation WXUNUSED(orient),
const wxRect& rect,
int flags)
int WXUNUSED(flags))
{
// we don't use the flags, the thumb never changes appearance
wxRect rectThumb = rect;
@@ -417,15 +417,15 @@ void wxMetalRenderer::DrawScrollbarThumb(wxDC& dc,
}
void wxMetalRenderer::DrawScrollbarShaft(wxDC& dc,
wxOrientation orient,
wxOrientation WXUNUSED(orient),
const wxRect& rectBar,
int flags)
int WXUNUSED(flags))
{
DrawMetal( dc, rectBar );
DrawMetal(dc, rectBar);
}
void wxMetalRenderer::GetComboBitmaps(wxBitmap *bmpNormal,
wxBitmap *bmpFocus,
wxBitmap * WXUNUSED(bmpFocus),
wxBitmap *bmpPressed,
wxBitmap *bmpDisabled)
{

View File

@@ -549,7 +549,8 @@ public:
protected:
virtual bool IsAllowedButton(int button) { return button == 1; }
virtual void Highlight(wxScrollBar *scrollbar, bool doIt)
virtual void Highlight(wxScrollBar * WXUNUSED(scrollbar),
bool WXUNUSED(doIt))
{
// we don't highlight anything
}
@@ -657,7 +658,7 @@ protected:
// wxWin32Theme
// ----------------------------------------------------------------------------
WX_DEFINE_ARRAY(wxInputHandler *, wxArrayHandlers);
WX_DEFINE_ARRAY_NO_PTR(wxInputHandler *, wxArrayHandlers);
class wxWin32Theme : public wxTheme
{
@@ -2453,7 +2454,9 @@ void wxWin32Renderer::DrawTextLine(wxDC& dc,
StandardDrawTextLine(dc, text, rect, selStart, selEnd, flags);
}
void wxWin32Renderer::DrawLineWrapMark(wxDC& dc, const wxRect& rect)
void
wxWin32Renderer::DrawLineWrapMark(wxDC& WXUNUSED(dc),
const wxRect& WXUNUSED(rect))
{
// we don't draw them
}
@@ -2584,9 +2587,10 @@ void wxWin32Renderer::DrawTab(wxDC& dc,
// slider
// ----------------------------------------------------------------------------
wxSize wxWin32Renderer::GetSliderThumbSize(const wxRect& rect,
int lenThumb,
wxOrientation orient) const
wxSize
wxWin32Renderer::GetSliderThumbSize(const wxRect& WXUNUSED(rect),
int lenThumb,
wxOrientation orient) const
{
wxSize size;
wxCoord width = wxMax (lenThumb, SLIDER_THUMB_LENGTH) / 2;
@@ -2857,7 +2861,7 @@ void wxWin32Renderer::DrawSliderTicks(wxDC& dc,
int start,
int end,
int step,
int flags,
int WXUNUSED(flags),
long style)
{
/* show ticks geometry
@@ -3271,7 +3275,7 @@ void wxWin32Renderer::DrawStatusField(wxDC& dc,
// ----------------------------------------------------------------------------
void wxWin32Renderer::GetComboBitmaps(wxBitmap *bmpNormal,
wxBitmap *bmpFocus,
wxBitmap * WXUNUSED(bmpFocus),
wxBitmap *bmpPressed,
wxBitmap *bmpDisabled)
{
@@ -3312,7 +3316,7 @@ void wxWin32Renderer::GetComboBitmaps(wxBitmap *bmpNormal,
void wxWin32Renderer::DoDrawBackground(wxDC& dc,
const wxColour& col,
const wxRect& rect,
wxWindow *window )
wxWindow * WXUNUSED(window))
{
wxBrush brush(col, wxSOLID);
dc.SetBrush(brush);
@@ -3323,8 +3327,8 @@ void wxWin32Renderer::DoDrawBackground(wxDC& dc,
void wxWin32Renderer::DrawBackground(wxDC& dc,
const wxColour& col,
const wxRect& rect,
int flags,
wxWindow *window )
int WXUNUSED(flags),
wxWindow *window)
{
// just fill it with the given or default bg colour
wxColour colBg = col.Ok() ? col : wxSCHEME_COLOUR(m_scheme, CONTROL);
@@ -3400,9 +3404,9 @@ void wxWin32Renderer::DrawArrowButton(wxDC& dc,
}
void wxWin32Renderer::DrawScrollbarThumb(wxDC& dc,
wxOrientation orient,
wxOrientation WXUNUSED(orient),
const wxRect& rect,
int flags)
int WXUNUSED(flags))
{
// we don't use the flags, the thumb never changes appearance
wxRect rectThumb = rect;
@@ -3411,7 +3415,7 @@ void wxWin32Renderer::DrawScrollbarThumb(wxDC& dc,
}
void wxWin32Renderer::DrawScrollbarShaft(wxDC& dc,
wxOrientation orient,
wxOrientation WXUNUSED(orient),
const wxRect& rectBar,
int flags)
{
@@ -4020,8 +4024,9 @@ static inline int GetTextBorderWidth()
return 1;
}
wxRect wxWin32Renderer::GetTextTotalArea(const wxTextCtrl *text,
const wxRect& rect) const
wxRect
wxWin32Renderer::GetTextTotalArea(const wxTextCtrl * WXUNUSED(text),
const wxRect& rect) const
{
wxRect rectTotal = rect;
@@ -4034,9 +4039,10 @@ wxRect wxWin32Renderer::GetTextTotalArea(const wxTextCtrl *text,
return rectTotal;
}
wxRect wxWin32Renderer::GetTextClientArea(const wxTextCtrl *text,
const wxRect& rect,
wxCoord *extraSpaceBeyond) const
wxRect
wxWin32Renderer::GetTextClientArea(const wxTextCtrl * WXUNUSED(text),
const wxRect& rect,
wxCoord *extraSpaceBeyond) const
{
wxRect rectText = rect;
@@ -4125,9 +4131,9 @@ wxWin32InputHandler::wxWin32InputHandler(wxWin32Renderer *renderer)
m_renderer = renderer;
}
bool wxWin32InputHandler::HandleKey(wxInputConsumer *control,
const wxKeyEvent& event,
bool pressed)
bool wxWin32InputHandler::HandleKey(wxInputConsumer * WXUNUSED(control),
const wxKeyEvent& WXUNUSED(event),
bool WXUNUSED(pressed))
{
return FALSE;
}

View File

@@ -849,9 +849,9 @@ bool wxStdToolbarInputHandler::HandleMouseMove(wxInputConsumer *consumer,
}
bool wxStdToolbarInputHandler::HandleFocus(wxInputConsumer *consumer,
const wxFocusEvent& event)
const wxFocusEvent& WXUNUSED(event))
{
if (m_toolCapture)
if ( m_toolCapture )
{
// We shouldn't be left with a highlighted button
consumer->PerformAction( wxACTION_TOOLBAR_LEAVE, m_toolCapture->GetId() );

View File

@@ -471,7 +471,7 @@ void wxInteractiveMoveHandler::OnMouseMove(wxMouseEvent& event)
}
}
void wxInteractiveMoveHandler::OnMouseDown(wxMouseEvent& event)
void wxInteractiveMoveHandler::OnMouseDown(wxMouseEvent& WXUNUSED(event))
{
if ( m_data.m_flags & wxINTERACTIVE_WAIT_FOR_INPUT )
{
@@ -598,7 +598,7 @@ void wxInteractiveMoveHandler::OnKeyDown(wxKeyEvent& event)
}
}
void wxInteractiveMoveHandler::OnMouseUp(wxMouseEvent& event)
void wxInteractiveMoveHandler::OnMouseUp(wxMouseEvent& WXUNUSED(event))
{
m_data.m_evtLoop->Exit();
}
@@ -691,7 +691,7 @@ void wxTopLevelWindow::ClickTitleBarButton(long button)
bool wxTopLevelWindow::PerformAction(const wxControlAction& action,
long numArg,
const wxString& strArg)
const wxString& WXUNUSED(strArg))
{
bool isActive = numArg != 0;

View File

@@ -182,7 +182,7 @@ const wxBitmap& wxWindow::GetBackgroundBitmap(int *alignment,
// ----------------------------------------------------------------------------
// the event handlers executed when the window must be repainted
void wxWindow::OnNcPaint(wxPaintEvent& event)
void wxWindow::OnNcPaint(wxPaintEvent& WXUNUSED(event))
{
if ( m_renderer )
{
@@ -340,7 +340,7 @@ void wxWindow::DoDrawBorder(wxDC& dc, const wxRect& rect)
}
}
void wxWindow::DoDraw(wxControlRenderer *renderer)
void wxWindow::DoDraw(wxControlRenderer * WXUNUSED(renderer))
{
}
@@ -891,7 +891,7 @@ void wxWindow::SetScrollbar(int orient,
}
}
void wxWindow::SetScrollPos(int orient, int pos, bool refresh)
void wxWindow::SetScrollPos(int orient, int pos, bool WXUNUSED(refresh))
{
wxScrollBar *scrollbar = GetScrollbar(orient);
wxCHECK_RET( scrollbar, _T("no scrollbar to set position for") );