ISplitter::GetSplitterPosition method

Retrieves the position of the splitter bar on the bottom-right of the cell determined by the (iRow, iCol) coordinates.

Defined in: SplitterLayout.h

Return Value

Position of the splitter bar intersection, in coordinates relative to the master window.

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.

Comments

Set iRow to -1 if you are only interested in the x coordinate of the vertical splitter bar. Set iCol to -1 if you are only interested in the y coordinate of the horizontal splitter bar. If either iRow or iCol is -1, the corresponding entry in the returned CPoint should be ignored.

Syntax

CPoint pt = pSplitter-&gtGetSplitterPosition(iRow, iCol);