fixes to handling of 0 and negative splitter position when splitting it initially

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-02-22 00:48:02 +00:00
parent 689fceb7a7
commit 74c57d1ff6
3 changed files with 59 additions and 25 deletions

View File

@@ -237,8 +237,13 @@ protected:
// get either width or height depending on the split mode
int GetWindowSize() const;
// set m_sashPosition w/ safeguards
// convert the user specified sash position which may be > 0 (as is), < 0
// (specifying the size of the right pane) or 0 (use default) to the real
// position to be passed to DoSetSashPosition()
int ConvertSashPosition(int sashPos) const;
// set the real sash position, sashPos here must be positive
void DoSetSashPosition(int sashPos);
wxSplitMode m_splitMode;