);
// Now create min static control
- wxSprintf(wxBuffer, wxT("%d"), minValue);
+ wxString minLabel;
+ minLabel.Printf(wxT("%d"), minValue);
wstyle = STATIC_FLAGS;
if ( m_windowStyle & wxCLIP_SIBLINGS )
msStyle |= WS_CLIPSIBLINGS;
m_staticMin = (WXHWND) CreateWindowEx
(
- 0, wxT("STATIC"), wxBuffer,
+ 0, wxT("STATIC"), minLabel,
wstyle,
0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)NewControlId(),
wxGetInstance(), NULL
HWND scroll_bar = CreateWindowEx
(
- MakeExtendedStyle(m_windowStyle), TRACKBAR_CLASS, wxBuffer,
+ MakeExtendedStyle(m_windowStyle), TRACKBAR_CLASS, wxT(""),
msStyle,
0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)m_windowId,
wxGetInstance(), NULL
if ( m_windowStyle & wxSL_LABELS )
{
// Finally, create max value static item
- wxSprintf(wxBuffer, wxT("%d"), maxValue);
+ wxString maxLabel;
+ maxLabel.Printf(wxT("%d"), maxValue);
wstyle = STATIC_FLAGS;
if ( m_windowStyle & wxCLIP_SIBLINGS )
m_staticMax = (WXHWND) CreateWindowEx
(
- 0, wxT("STATIC"), wxBuffer,
+ 0, wxT("STATIC"), maxLabel,
wstyle,
0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)NewControlId(),
wxGetInstance(), NULL
if (m_staticValue)
{
- wxSprintf(wxBuffer, wxT("%d"), value);
- ::SetWindowText((HWND) m_staticValue, wxBuffer);
+ wxString str;
+ str.Printf(wxT("%d"), value);
+ ::SetWindowText((HWND) m_staticValue, str);
}
}