CExtGridWnd::GridCellRectsGet

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

Calculates a set of rectangles for a specified visible grid cell and returns true if succeeded.

virtualbool GridCellRectsGet(
   LONG nColNo,
   LONG nRowNo,
   INT nColType,
   INT nRowType,
   RECT * pRectCell,
   RECT * pRectCellExtra = NULL,
   RECT * pRectText = NULL,
   RECT * pRectTextArea = NULL,
   RECT * pRectIcon = NULL,
   RECT * pRectCheck = NULL,
   RECT * pRectButtonEllipsis = NULL,
   RECT * pRectButtonDropdown = NULL,
   RECT * pRectButtonUp = NULL,
   RECT * pRectButtonDown = NULL,
   RECT * pRectFocusArrow = NULL,
   RECT * pRectSortArrow = NULL
) const;

Parameters

nColNo
Column index.
nRowNo
Row index.
nColType
Type of the column (0 - inner column, -1 - outer column on left, 1 - outer column on right).
nRowType
Type of the row (0 - inner row, -1 - outer row at top, 1 - outer row at bottom).
pRectCell
Pointer to the RECT variable in which the rectangle that surrounds the cell data, check-box, image, and buttons is stored. Set this pointer to NULL, if you are not interested in the value specified by this parameter.
pRectCellExtra
Pointer to RECT variable in which the rectangle that surrounds the cell including extra outer space around the cell should be stored. Set this pointer to NULL, if you are not interested in the value specified by this parameter.
pRectText
Pointer to RECT variable in which the rectangle that surrounds the text in the cell should be stored. Set this pointer to NULL, if you are not interested in the value specified by this parameter.
pRectTextArea
Pointer to RECT variable where the rectangle that surrounds the entire area for the text in the cell should be stored. Set this pointer to NULL, if you are not interested in the value specified by this parameter.
pRectIcon
Pointer to RECT variable in which the rectangle that surrounds the image in the cell should be stored. Set this pointer to NULL, if you are not interested in the value specified by this parameter.
pRectCheck
Pointer to RECT variable in which the rectangle that surrounds the check box in the cell should be stored. Set this pointer to NULL, if you are not interested in the value specified by this parameter.
pRectButtonEllipsis
Pointer to RECT variable in which the rectangle that surrounds the built-in ellipsis button should be stored. Set this pointer to NULL, if you are not interested in the value specified by this parameter.
pRectButtonDropdown
Pointer to RECT variable in which the rectangle that surrounds the built-in dropdown button should be stored. Set this pointer to NULL, if you are not interested in the value specified by this parameter.
pRectButtonUp
Pointer to RECT variable in which the rectangle that surrounds the Up button of the built-in UpDown button should be stored. Set this pointer to NULL, if you are not interested in the value specified by this parameter.
pRectButtonDown
Pointer to RECT variable in which the rectangle that surrounds the Down button of the built-in UpDown button should be stored. Set this pointer to NULL, if you are not interested in the value specified by this parameter.
pRectFocusArrow
Pointer to RECT variable in which the rectangle that surrounds the focus arrow should be stored. Set this pointer to NULL, if you are not interested in the value specified by this parameter.
pRectSortArrow
Pointer to RECT variable in which the rectangle that surrounds the sort arrow should be stored. Set this pointer to NULL, if you are not interested in the value specified by this parameter.

See Also

CExtGridWnd Overview | Class Members | Hierarchy Chart