wxGetInstance(), NULL);
// Now create min static control
- wxSprintf(wxBuffer, wxT("%d"), minValue);
+ wxString buf;
+ buf.Printf(wxT("%d"), minValue);
DWORD wstyle = STATIC_FLAGS;
if ( m_windowStyle & wxCLIP_SIBLINGS )
wstyle |= WS_CLIPSIBLINGS;
- m_staticMin = (WXHWND) CreateWindowEx(0, wxT("STATIC"), wxBuffer,
+ m_staticMin = (WXHWND) CreateWindowEx(0, wxT("STATIC"), buf,
wstyle,
0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)NewControlId(),
wxGetInstance(), NULL);
else
msStyle = SBS_HORZ | WS_CHILD | WS_VISIBLE | WS_TABSTOP ;
- HWND scroll_bar = CreateWindowEx(MakeExtendedStyle(m_windowStyle), wxT("SCROLLBAR"), wxBuffer,
+ HWND scroll_bar = CreateWindowEx(MakeExtendedStyle(m_windowStyle), wxT("SCROLLBAR"), wxT(""),
msStyle,
0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)m_windowId,
wxGetInstance(), NULL);
SubclassWin(GetHWND());
// Finally, create max value static item
- wxSprintf(wxBuffer, wxT("%d"), maxValue);
+ buf.Printf(wxT("%d"), maxValue);
wstyle = STATIC_FLAGS;
if ( m_windowStyle & wxCLIP_SIBLINGS )
wstyle |= WS_CLIPSIBLINGS;
- m_staticMax = (WXHWND) CreateWindowEx(0, wxT("STATIC"), wxBuffer,
+ m_staticMax = (WXHWND) CreateWindowEx(0, wxT("STATIC"), buf,
wstyle,
0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)NewControlId(),
wxGetInstance(), NULL);
::SetScrollPos(GetHwnd(), SB_CTL, value, TRUE);
if (m_staticValue)
{
- wxSprintf(wxBuffer, wxT("%d"), value);
- SetWindowText((HWND) m_staticValue, wxBuffer);
+ wxString buf;
+ buf.Printf(wxT("%d"), value);
+ SetWindowText((HWND) m_staticValue, buf);
}
}
return m_lineSize;
}
+// Not yet implemented
+void wxSliderMSW::SetThumbLength(int WXUNUSED(lenPixels))
+{
+}
+
+// Not yet implemented
+int wxSliderMSW::GetThumbLength() const
+{
+ return 0;
+}
+
bool wxSliderMSW::ContainsHWND(WXHWND hWnd) const
{
return ( hWnd == GetStaticMin() || hWnd == GetStaticMax() || hWnd == GetEditValue() );