ISplitter::SetSplitterPosition method
Programatically sets the position of the splitter bar on the bottom-right of the cell determined by the (iRow, iCol) coordinates.Defined in: SplitterLayout.h
Parameters
iRow
Row position of the cell, based on 0. Set this parameter to -1 if only interested in position of vertical bar.
iCol
Column position of the cell, based on 0. Set this parameter to -1 if only interested in position of horizontal bar.
pt
Position where you want to move the splitter, in coordinates relative to the master window.
Comments
Set iRow to -1 if you are only interested in moving the vertical splitter bar. Set iCol to -1 if you are only interested in moving the horizontal splitter bar. If either iRow or iCol is -1, the corresponding entry in the returned CPoint will be ignored.The effect of moving the splitter can be achieved with either the SetSplitterPosition method or the ISplitter::MoveSplitter method. The main difference is that SetSplitterPosition receives the exact position where you want to set the splitter bars, whereas MoveSplitter rather concentrates in the number of units you want to move the splitter from its current position.
Syntax
CPoint pt = pSplitter->GetSplitterPosition(iRow, iCol);pSplitter->SetSplitterPosition(iRow, iCol, pt);