don't override GetSize(), this doesn't work (bug 732758)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -46,8 +46,6 @@ public:
|
|||||||
virtual int GetValue() const;
|
virtual int GetValue() const;
|
||||||
virtual void SetValue(int);
|
virtual void SetValue(int);
|
||||||
|
|
||||||
void GetSize(int *w, int *h) const;
|
|
||||||
|
|
||||||
void GetPosition(int *x, int *y) const;
|
void GetPosition(int *x, int *y) const;
|
||||||
|
|
||||||
bool Show(bool show = TRUE);
|
bool Show(bool show = TRUE);
|
||||||
|
@@ -394,11 +394,6 @@ void wxSlider95::SetValue(int value)
|
|||||||
}
|
}
|
||||||
|
|
||||||
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 rect;
|
||||||
rect.left = -1; rect.right = -1; rect.top = -1; rect.bottom = -1;
|
rect.left = -1; rect.right = -1; rect.top = -1; rect.bottom = -1;
|
||||||
@@ -414,7 +409,9 @@ void wxSlider95::GetSize(int *width, int *height) const
|
|||||||
if (m_staticValue)
|
if (m_staticValue)
|
||||||
wxFindMaxSize(m_staticValue, &rect);
|
wxFindMaxSize(m_staticValue, &rect);
|
||||||
|
|
||||||
|
if ( width )
|
||||||
*width = rect.right - rect.left;
|
*width = rect.right - rect.left;
|
||||||
|
if ( height )
|
||||||
*height = rect.bottom - rect.top;
|
*height = rect.bottom - rect.top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user