Set splitters in the window based on the given configuration string. LT command "page -sps" is doing the same thing.
BOOL SetSplitters( LPCSTR lpcszString )
Returns TRUE on success and FALSE on failure.
EX1
int PageBase_SetSplitters_ex1(BOOL bShow = TRUE) { WorksheetPage wp = Project.Pages(0); if( wp.IsValid() ) { if( bShow ) { string strConfig = "r{50%}r[WkbookSplitter]"; wp.SetSplitters(strConfig); } else wp.SetSplitters(NULL); } return 0; }
EX2
int PageBase_SetSplitters_ex2(BOOL bShow = TRUE) { WorksheetPage wp = Project.Pages(0); if( wp.IsValid() ) { if( bShow ) { string strConfig = "c[ScriptPanel]{40%}c"; wp.SetSplitters(strConfig); } else wp.SetSplitters(NULL); } return 0; }
PageBase::GetSplitterInfo
origin.h