- bool want3D;
- WXDWORD exStyle = Determine3DEffects(WS_EX_CLIENTEDGE, &want3D) ;
+ WXDWORD exStyle = 0;
+ long valueStyle = m_windowStyle & ~wxBORDER_MASK;
+ valueStyle |= wxBORDER_SUNKEN;
+ msStyle |= MSWGetStyle(valueStyle, & exStyle) ;
wstyle = STATIC_FLAGS;
if ( m_windowStyle & wxCLIP_SIBLINGS )
msStyle |= WS_CLIPSIBLINGS;
m_staticMin = (WXHWND) CreateWindowEx
(
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
);
}
wstyle,
0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)NewControlId(),
wxGetInstance(), NULL
);
}
- MakeExtendedStyle(m_windowStyle), TRACKBAR_CLASS, wxBuffer,
+ exStyle, TRACKBAR_CLASS, wxT(""),
msStyle,
0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)m_windowId,
wxGetInstance(), NULL
msStyle,
0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)m_windowId,
wxGetInstance(), NULL
if ( m_windowStyle & wxSL_LABELS )
{
// Finally, create max value static item
if ( m_windowStyle & wxSL_LABELS )
{
// Finally, create max value static item
- 0, wxT("STATIC"), wxBuffer,
+ 0, wxT("STATIC"), maxLabel,
wstyle,
0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)NewControlId(),
wxGetInstance(), NULL
wstyle,
0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)NewControlId(),
wxGetInstance(), NULL
- wxSprintf(wxBuffer, wxT("%d"), value);
- ::SetWindowText((HWND) m_staticValue, wxBuffer);
+ wxString str;
+ str.Printf(wxT("%d"), value);
+ ::SetWindowText((HWND) m_staticValue, str);