// Associates the given window with window 2, drawing the appropriate sash
// and changing the split mode.
// Associates the given window with window 2, drawing the appropriate sash
// and changing the split mode.
// A sashPosition of 0 means choose a default sash position,
// negative sashPosition specifies the size of right/lower pane as it's
// absolute value rather than the size of left/upper pane.
// A sashPosition of 0 means choose a default sash position,
// negative sashPosition specifies the size of right/lower pane as it's
// absolute value rather than the size of left/upper pane.
// parameter should be NULL)
bool ReplaceWindow(wxWindow *winOld, wxWindow *winNew);
// parameter should be NULL)
bool ReplaceWindow(wxWindow *winOld, wxWindow *winNew);
virtual int OnSashPositionChanging(int newSashPosition);
// Called when the sash position is about to be changed, return
virtual int OnSashPositionChanging(int newSashPosition);
// Called when the sash position is about to be changed, return
// Repositions sash to minimum position if pane would be too small.
// newSashPosition here is always positive or zero.
virtual bool OnSashPositionChange(int newSashPosition);
// Repositions sash to minimum position if pane would be too small.
// newSashPosition here is always positive or zero.
virtual bool OnSashPositionChange(int newSashPosition);
bool DoSetSashPosition(int sashPos);
// set the sash position and send an event about it having been changed
void SetSashPositionAndNotify(int sashPos);
bool DoSetSashPosition(int sashPos);
// set the sash position and send an event about it having been changed
void SetSashPositionAndNotify(int sashPos);