bool want3D;
WXDWORD exStyle = Determine3DEffects(WS_EX_CLIENTEDGE, &want3D) ;
- m_staticValue = (WXHWND) CreateWindowEx(exStyle, "STATIC", NULL,
+ m_staticValue = (WXHWND) CreateWindowEx(exStyle, _T("STATIC"), NULL,
msStyle,
0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)NewControlId(),
wxGetInstance(), NULL);
// Now create min static control
- sprintf(wxBuffer, "%d", minValue);
- m_staticMin = (WXHWND) CreateWindowEx(0, "STATIC", wxBuffer,
+ wxSprintf(wxBuffer, _T("%d"), minValue);
+ m_staticMin = (WXHWND) CreateWindowEx(0, _T("STATIC"), wxBuffer,
STATIC_FLAGS,
0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)NewControlId(),
wxGetInstance(), NULL);
SubclassWin(GetHWND());
- SetWindowText((HWND) m_hWnd, "");
+ SetWindowText((HWND) m_hWnd, _T(""));
SetFont(parent->GetFont());
if ( m_windowStyle & wxSL_LABELS )
{
// Finally, create max value static item
- sprintf(wxBuffer, "%d", maxValue);
- m_staticMax = (WXHWND) CreateWindowEx(0, "STATIC", wxBuffer,
+ wxSprintf(wxBuffer, _T("%d"), maxValue);
+ m_staticMax = (WXHWND) CreateWindowEx(0, _T("STATIC"), wxBuffer,
STATIC_FLAGS,
0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)NewControlId(),
wxGetInstance(), NULL);
::SendMessage((HWND) GetHWND(), TBM_SETPOS, (WPARAM)TRUE, (LPARAM)value);
if (m_staticValue)
{
- sprintf(wxBuffer, "%d", value);
+ wxSprintf(wxBuffer, _T("%d"), value);
SetWindowText((HWND) m_staticValue, wxBuffer);
}
}
AdjustForParentClientOrigin(x1, y1, sizeFlags);
- char buf[300];
+ wxChar buf[300];
int x_offset = x;
int y_offset = y;
::SendMessage((HWND) GetHWND(), TBM_SETRANGE, TRUE, MAKELONG(minValue, maxValue));
- char buf[40];
+ wxChar buf[40];
if ( m_staticMin )
{
- sprintf(buf, "%d", m_rangeMin);
+ wxSprintf(buf, _T("%d"), m_rangeMin);
SetWindowText((HWND) m_staticMin, buf);
}
if ( m_staticMax )
{
- sprintf(buf, "%d", m_rangeMax);
+ wxSprintf(buf, _T("%d"), m_rangeMax);
SetWindowText((HWND) m_staticMax, buf);
}
}