CExtGridCell::OnJoinQueryInfo

Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

Returns a CSize object that describes how a cell is merged with its neighboring cells.

virtualCSize OnJoinQueryInfo(
   const CExtGridWnd & wndGrid,
   LONG nColNo,
   LONG nRowNo,
   INT nColType = 0,
   INT nRowType = 0
) const;

Parameters

wndGrid
Reference to the grid window object.
nColNo
Column index.
nRowNo
Row index.
nColType
Type of column (0 - inner column, -1 - outer column on left, 1 - outer column on right).
nRowType
Type of row (0 - inner row, -1 - outer row at top, 1 - outer row at bottom).

Remarks

The table below contains the possible values stored in a CSize object, which specify where a cell is located relative to the topmost and leftmost cell in a region of merged cells.

cx cy Meaning
1 1 Regular cell that is not merged.
m 1 The leftmost cell in a range of m merged cells in a row.
1 n The topmost cell in a range of n merged cells in a column.
m n The topmost and leftmost cell in a range of m x n cells.
-m 0 The cell is located m cells to the right of the leftmost cell in a range of merged cells in a row.
0 -n The cell is located n cells to the bottom of the topmost cell in a range of merged cells in a column.
-m -n The cell is located n cells to the bottom of the topmost cell and m cells to the right of the leftmost cell in a range of merged cells.

See Also

CExtGridCell Overview | Class Members | Hierarchy Chart