#endif
#include "wx/window.h" // base class declaration
+#include "wx/containr.h" // wxControlContainer
class WXDLLEXPORT wxSplitterEvent;
wxSplitterWindow(wxWindow *parent, wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- long style = wxSP_3D|wxCLIP_CHILDREN,
+ long style = wxSP_3D,
const wxString& name = "splitter")
{
Init();
Create(parent, id, pos, size, style, name);
}
- ~wxSplitterWindow();
+ virtual ~wxSplitterWindow();
bool Create(wxWindow *parent, wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- long style = wxSP_3D|wxCLIP_CHILDREN,
+ long style = wxSP_3D,
const wxString& name = "splitter");
// Gets the only or left/top pane
void SendUnsplitEvent(wxWindow *winRemoved);
protected:
+ // common part of all ctors
void Init();
-
int m_splitMode;
bool m_permitUnsplitAlways;
bool m_needUpdating; // when in live mode, set this to TRUE to resize children in idle
wxPen* m_facePen;
private:
+ WX_DECLARE_CONTROL_CONTAINER();
+
DECLARE_DYNAMIC_CLASS(wxSplitterWindow)
DECLARE_EVENT_TABLE()
};