CExtGridWnd::OnGridCellButtonPressing

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

Called when the built-in button is about to be pressed (the user clicked it) but the button is not yet redrawn to correspond to the pressed state nor CExtGridWnd::OnGridCellButtonPressed() is called. You can override this method and return true in it to cancel button pressing.

virtualbool OnGridCellButtonPressing(
   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