Unused parameters markup.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -99,9 +99,9 @@ IMPLEMENT_DYNAMIC_CLASS_XTI(wxSpinButton, wxControl,"wx/spinbut.h")
|
||||
wxBEGIN_PROPERTIES_TABLE(wxSpinButton)
|
||||
wxEVENT_RANGE_PROPERTY( Spin , wxEVT_SCROLL_TOP , wxEVT_SCROLL_ENDSCROLL , wxSpinEvent )
|
||||
|
||||
wxPROPERTY( Value , int , SetValue, GetValue, 0 , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
|
||||
wxPROPERTY( Min , int , SetMin, GetMin, 0 , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
|
||||
wxPROPERTY( Max , int , SetMax, GetMax, 0 , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
|
||||
wxPROPERTY( Value , int , SetValue, GetValue, 0 , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
|
||||
wxPROPERTY( Min , int , SetMin, GetMin, 0 , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
|
||||
wxPROPERTY( Max , int , SetMax, GetMax, 0 , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
|
||||
wxPROPERTY_FLAGS( WindowStyle , wxSpinButtonStyle , long , SetWindowStyleFlag , GetWindowStyleFlag , EMPTY_MACROVALUE , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // style
|
||||
wxEND_PROPERTIES_TABLE()
|
||||
|
||||
@@ -127,7 +127,7 @@ bool wxSpinButton::Create(wxWindow *parent,
|
||||
const wxString& name)
|
||||
{
|
||||
// basic initialization
|
||||
m_windowId = (id == -1) ? NewControlId() : id;
|
||||
m_windowId = (id == wxID_ANY) ? NewControlId() : id;
|
||||
|
||||
SetName(name);
|
||||
|
||||
@@ -186,7 +186,7 @@ bool wxSpinButton::Create(wxWindow *parent,
|
||||
{
|
||||
wxLogLastError(wxT("CreateUpDownControl"));
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( parent )
|
||||
@@ -198,7 +198,7 @@ bool wxSpinButton::Create(wxWindow *parent,
|
||||
|
||||
SetBestSize(size);
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
wxSpinButton::~wxSpinButton()
|
||||
@@ -211,18 +211,7 @@ wxSpinButton::~wxSpinButton()
|
||||
|
||||
wxSize wxSpinButton::DoGetBestSize() const
|
||||
{
|
||||
if ( (GetWindowStyle() & wxSP_VERTICAL) != 0 )
|
||||
{
|
||||
// vertical control
|
||||
return wxSize(GetSystemMetrics(SM_CXVSCROLL),
|
||||
2*GetSystemMetrics(SM_CYVSCROLL));
|
||||
}
|
||||
else
|
||||
{
|
||||
// horizontal control
|
||||
return wxSize(2*GetSystemMetrics(SM_CXHSCROLL),
|
||||
GetSystemMetrics(SM_CYHSCROLL));
|
||||
}
|
||||
return GetBestSpinerSize( (GetWindowStyle() & wxSP_VERTICAL) != 0 );
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -286,7 +275,7 @@ bool wxSpinButton::MSWOnScroll(int WXUNUSED(orientation), WXWORD wParam,
|
||||
if ( wParam != SB_THUMBPOSITION )
|
||||
{
|
||||
// probable SB_ENDSCROLL - we don't react to it
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
wxSpinEvent event(wxEVT_SCROLL_THUMBTRACK, m_windowId);
|
||||
@@ -301,7 +290,7 @@ bool wxSpinButton::MSWOnNotify(int WXUNUSED(idCtrl), WXLPARAM lParam, WXLPARAM *
|
||||
NM_UPDOWN *lpnmud = (NM_UPDOWN *)lParam;
|
||||
|
||||
if (lpnmud->hdr.hwndFrom != GetHwnd()) // make sure it is the right control
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
wxSpinEvent event(lpnmud->iDelta > 0 ? wxEVT_SCROLL_LINEUP
|
||||
: wxEVT_SCROLL_LINEDOWN,
|
||||
@@ -319,11 +308,9 @@ bool wxSpinButton::MSWOnNotify(int WXUNUSED(idCtrl), WXLPARAM lParam, WXLPARAM *
|
||||
bool wxSpinButton::MSWCommand(WXUINT WXUNUSED(cmd), WXWORD WXUNUSED(id))
|
||||
{
|
||||
// No command messages
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif // __WIN95__
|
||||
|
||||
#endif
|
||||
// wxUSE_SPINCTN
|
||||
|
||||
#endif // wxUSE_SPINBTN
|
||||
|
||||
Reference in New Issue
Block a user