CExtGridWnd::OnGridCellInplaceControlCreate

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

Called to create the in-place editor window for the specified grid cell. The method returns a handle of the created window handle. The default implementation returns NULL. In this case the CExtGridCell::OnInplaceControlCreate() virtual method of the cell being edited creates a single line edit control.

virtualHWND OnGridCellInplaceControlCreate(
   HWND hWndParentForEditor,
   CExtGridCell & _cell,
   LONG nVisibleColNo,
   LONG nVisibleRowNo,
   LONG nColNo,
   LONG nRowNo,
   INT nColType,
   INT nRowType,
   const RECT & rcCellExtra,
   const RECT & rcCell,
   const RECT & rcInplaceControl,
   LONG nLastEditedColNo,
   LONG nLastEditedRowNo
);

Parameters

hWndParentForEditor
Parent window for in-place editor. If NULL, then the grid window should be used as parent.
_cell
Reference to the cell object being edited.
nVisibleColNo
Column index relative to the first visible column on the left.
nVisibleRowNo
Row index relative to the first visible row at the top.
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).
rcCellExtra
Rectangular area of the cell including extra outer spaces.
rcCell
Rectangle that encloses the cell data.
rcInplaceControl
Rectangle that encloses the in-place control to appear.
nLastEditedColNo
Column index of the previously edited cell. This parameter is set to -1 if the walking editor feature is not enabled for the grid window.
nLastEditedRowNo
Row index of the previously edited cell. This parameter is set to -1 if the walking algorithm feature is not enabled for the grid window.

See Also

CExtGridWnd Overview | Class Members | Hierarchy Chart