CExtGridWnd::OnGridCellButtonPressed

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

Called when the built-in button is pressed. The method returns true to indicate that this event has been processed.

virtualbool OnGridCellButtonPressed(
   const CExtGridCell & _cell,
   INT nButtonType,
   bool bMouseInsideButton, 
   ULONG nPressedTimerCounter, 
   const RECT & rcButton,
   const RECT & rcCellExtra,
   const RECT & rcCell
   LONG nColNo,
   LONG nRowNo,
   INT nColType,
   INT nRowType
);

Parameters

_cell
Reference to the cell object.
nButtonType
Specifies the button type. The list of supported button types is given in the CExtGridCell::e_button_type_t enumeration.
bMouseInsideButton
Indicates that the mouse pointer is currently over the button area if bMouseInsideButton is true; outside the area otherwise.
nPressedTimerCounter
For internal use only.
rcButton
Specifies the rectangular area of the button.
rcCellExtra
Specifies the rectangular area of the cell including extra outer space around the data area of the cell.
rcCell
Specifies the rectangular area (of the cell) used for displaying data.
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).

See Also

CExtGridWnd Overview | Class Members | Hierarchy Chart