X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eacb91fc20ed0079a699ba7f3f2f624958caf482..16fd964239d70597b0c072d4f3909b3e93460423:/contrib/samples/gizmos/dynsash_switch/dynsash_switch.cpp?ds=inline diff --git a/contrib/samples/gizmos/dynsash_switch/dynsash_switch.cpp b/contrib/samples/gizmos/dynsash_switch/dynsash_switch.cpp index 208745d8fb..1ac49a9eda 100644 --- a/contrib/samples/gizmos/dynsash_switch/dynsash_switch.cpp +++ b/contrib/samples/gizmos/dynsash_switch/dynsash_switch.cpp @@ -12,7 +12,21 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +// For compilers that support precompilation, includes "wx/wx.h". +#include "wx/wxprec.h" + +#ifdef __BORLANDC__ + #pragma hdrstop +#endif + +// for all others, include the necessary headers (this file is usually all you +// need because it includes almost all "standard" wxWindows headers) +#ifndef WX_PRECOMP + #include "wx/wx.h" +#endif + #include +#include #include #include #include @@ -55,15 +69,15 @@ SwitchView::SwitchView(wxDynamicSashWindow *win) { m_dyn_sash = win; - m_bar = new wxWindow(this, -1, wxDefaultPosition, wxDefaultSize, wxRAISED_BORDER, "bar"); + m_bar = new wxWindow(this, -1, wxDefaultPosition, wxDefaultSize, wxRAISED_BORDER, wxT("bar")); m_choice = new wxChoice(m_bar, -1); m_choice->SetEventHandler(this); - m_view = new wxWindow(this, -1, wxDefaultPosition, wxDefaultSize, 0, "view"); + m_view = new wxWindow(this, -1, wxDefaultPosition, wxDefaultSize, 0, wxT("view")); m_view->SetBackgroundColour(*wxWHITE); m_view->SetEventHandler(this); - m_choice->Append("Triangle"); - m_choice->Append("Square"); + m_choice->Append(wxT("Triangle")); + m_choice->Append(wxT("Square")); m_choice->SetSelection(0); wxLayoutConstraints *layout; @@ -208,7 +222,7 @@ bool SwitchDemo::OnInit() { wxFrame *frame; wxDynamicSashWindow *dyn; - frame = new wxFrame(NULL, -1, "Dynamic Sash Window Switch Demo"); + frame = new wxFrame(NULL, -1, wxT("Dynamic Sash Window Switch Demo")); dyn = new wxDynamicSashWindow(frame, -1, wxDefaultPosition, wxDefaultSize, wxCLIP_CHILDREN); new SwitchView(dyn);