X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42e69d6b435a4dd5415caf3750db62cf45b6f373..7d4194184e83bbccf1a88325cca59d8d0d2faef1:/src/msw/statbox.cpp?ds=sidebyside diff --git a/src/msw/statbox.cpp b/src/msw/statbox.cpp index a82450f6b3..6ca6074e54 100644 --- a/src/msw/statbox.cpp +++ b/src/msw/statbox.cpp @@ -20,13 +20,15 @@ #pragma hdrstop #endif +#include "wx/window.h" +#include "wx/msw/private.h" + #ifndef WX_PRECOMP -#include "wx/dcclient.h" #include "wx/app.h" +#include "wx/dcclient.h" #endif #include "wx/statbox.h" -#include "wx/msw/private.h" #if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl) @@ -73,7 +75,7 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID id, WXDWORD exStyle = Determine3DEffects(0, &want3D) ; HWND wx_button = - CreateWindowEx(exStyle, "BUTTON", (const char *)label, msStyle, + CreateWindowEx(exStyle, _T("BUTTON"), (const wxChar *)label, msStyle, 0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)m_windowId, wxGetInstance(), NULL); #if wxUSE_CTL3D @@ -99,7 +101,7 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID id, void wxStaticBox::SetLabel(const wxString& label) { - SetWindowText((HWND)m_hWnd, (const char *)label); + SetWindowText((HWND)m_hWnd, (const wxChar *)label); } void wxStaticBox::DoSetSize(int x, int y, int width, int height, int sizeFlags)