diff --git a/SOUI/include/control/SSpinButtonCtrl.h b/SOUI/include/control/SSpinButtonCtrl.h index 1a118243f983494e771e99f879b03b9990b72106..dd47cc469d0b9f714449942ebfdb08d8dd02fb14 100644 --- a/SOUI/include/control/SSpinButtonCtrl.h +++ b/SOUI/include/control/SSpinButtonCtrl.h @@ -23,7 +23,7 @@ namespace SOUI protected: void OnValueChanged(bool bInit=false); - + void OnScaleChanged(int scale); void OnLButtonDown(UINT nFlags, CPoint point); void OnLButtonUp(UINT nFlags, CPoint point); void OnMouseMove(UINT nFlags, CPoint point); diff --git a/SOUI/src/control/SSpinButtonCtrl.cpp b/SOUI/src/control/SSpinButtonCtrl.cpp index c1b9a6b6b55307f84a6339b50f45fc1eb904c871..fc239392af8340e6ae050ac43a339a4ade553ff5 100644 --- a/SOUI/src/control/SSpinButtonCtrl.cpp +++ b/SOUI/src/control/SSpinButtonCtrl.cpp @@ -93,7 +93,14 @@ namespace SOUI FireEvent(evt); pBuddy->SetWindowText(evt.strValue); } - } + } + + void SSpinButtonCtrl::OnScaleChanged(int scale) + { + __super::OnScaleChanged(scale); + GetScaleSkin(m_pUpSkin, scale); + GetScaleSkin(m_pDownSkin, scale); + } void SSpinButtonCtrl::OnLButtonDown(UINT nFlags, CPoint point)