- wxSprintf(wxBuffer, wxT("%d"), minValue);
- m_staticMin = (WXHWND) CreateWindowEx(0, wxT("STATIC"), wxBuffer,
- STATIC_FLAGS,
+ 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"), buf,
+ wstyle,