]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/splitter.h
* prgodlgg.h: Update() use wxString instead of 'char *'
[wxWidgets.git] / include / wx / generic / splitter.h
index d8ffcc0f3783f382d3972459806c6eba21352f38..6cbb3453ecc833eebfe655e19a05ea759dcf5d7d 100644 (file)
@@ -94,6 +94,10 @@ public:
     // Doesn't actually delete the window.
     bool Unsplit(wxWindow *toRemove = (wxWindow *) NULL);
 
+    // Replaces one of the windows with another one (neither old nor new
+    // parameter should be NULL)
+    bool ReplaceWindow(wxWindow *winOld, wxWindow *winNew);
+
     // Is the window split?
     bool IsSplit() const { return (m_windowTwo != NULL); }
 
@@ -121,8 +125,9 @@ public:
 
     // Called when the sash position is about to be changed, return
     // FALSE from here to prevent the change from taking place.
+    // Repositions sash to minimum position if pane would be too small.
     // newSashPosition here is always positive or zero.
-    virtual bool OnSashPositionChange(int newSashPosition);
+    virtual bool OnSashPositionChange(int& newSashPosition);
 
     // If the sash is moved to an extreme position, a subwindow
     // is removed from the splitter window, and the app is