X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/936f635341e9b92b37db93cc7781d564babbe25f..621860064662aa80ba4fdc21ca55b6d33c1bea11:/src/msw/slider.cpp diff --git a/src/msw/slider.cpp b/src/msw/slider.cpp index 5eabd63b7d..62643ec986 100644 --- a/src/msw/slider.cpp +++ b/src/msw/slider.cpp @@ -183,7 +183,7 @@ wxSlider::Create(wxWindow *parent, }; wxASSERT_MSG( !(style & wxSL_VERTICAL) || !(style & wxSL_HORIZONTAL), - _T("incompatible slider direction and orientation") ); + wxT("incompatible slider direction and orientation") ); // initialize everything @@ -575,7 +575,7 @@ void wxSlider::SetValue(int value) { ::SendMessage(GetHwnd(), TBM_SETPOS, (WPARAM)TRUE, (LPARAM)ValueInvertOrNot(value)); - if ( m_labels ) + if ( HasFlag(wxSL_VALUE_LABEL) ) { ::SetWindowText((*m_labels)[SliderLabel_Value], Format(value).wx_str()); } @@ -589,7 +589,7 @@ void wxSlider::SetRange(int minValue, int maxValue) ::SendMessage(GetHwnd(), TBM_SETRANGEMIN, TRUE, m_rangeMin); ::SendMessage(GetHwnd(), TBM_SETRANGEMAX, TRUE, m_rangeMax); - if ( m_labels ) + if ( HasFlag(wxSL_MIN_MAX_LABELS) ) { ::SetWindowText((*m_labels)[SliderLabel_Min], Format(ValueInvertOrNot(m_rangeMin)).wx_str());