#include <wx/splitter.h>
#include <wx/scrolwin.h>
#include <wx/textctrl.h>

wxSplitterWindow* m_split=new wxSplitterWindow(this, wxID_ANY,wxDefaultPosition, wxDefaultSize,wxSP_3D);
wxScrolledWindow* m_scroll1=new wxScrolledWindow(m_split);
m_scroll1->SetBackgroundColour(*wxRED);
wxScrolledWindow* m_scroll2=new wxScrolledWindow(m_split);
m_scroll2->SetBackgroundColour(*wxGREEN);
wxTextCtrl* text=new wxTextCtrl(m_scroll2,wxID_ANY,_("text"),
                                    wxDefaultPosition,wxDefaultSize,wxTE_MULTILINE);

//垂直分割
m_split->SplitVertically(m_scroll1,m_scroll2,200); 

//水平分割
//m_split->SplitHorizontally(m_scroll1,m_scroll2,200);

 

我会尝试一下如何在界面工具中实现分割