git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25773
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual int GetValue() const;
virtual void SetValue(int);
virtual int GetValue() const;
virtual void SetValue(int);
- void GetSize(int *w, int *h) const;
-
void GetPosition(int *x, int *y) const;
bool Show(bool show = TRUE);
void GetPosition(int *x, int *y) const;
bool Show(bool show = TRUE);
}
void wxSlider95::DoGetSize(int *width, int *height) const
}
void wxSlider95::DoGetSize(int *width, int *height) const
-{
- GetSize(width, height);
-}
-
-void wxSlider95::GetSize(int *width, int *height) const
{
RECT rect;
rect.left = -1; rect.right = -1; rect.top = -1; rect.bottom = -1;
{
RECT rect;
rect.left = -1; rect.right = -1; rect.top = -1; rect.bottom = -1;
if (m_staticValue)
wxFindMaxSize(m_staticValue, &rect);
if (m_staticValue)
wxFindMaxSize(m_staticValue, &rect);
- *width = rect.right - rect.left;
- *height = rect.bottom - rect.top;
+ if ( width )
+ *width = rect.right - rect.left;
+ if ( height )
+ *height = rect.bottom - rect.top;
}
void wxSlider95::GetPosition(int *x, int *y) const
}
void wxSlider95::GetPosition(int *x, int *y) const