<< Return to Main Index

< Return to Class Index

CGXControl::Init

virtual void Init(ROWCOL nRow, ROWCOL nCol);

nRow

Specifies the row id.

nCol

Specifies the column id.

Remarks

Initializes the intrinsic state (e.g., row, column, style) of the control for the current cell. This method is called when the current cell has moved. The operations that follow all depend on the intrinsic state of the control.

If you have child controls that are only displayed for the current cell (e.g., the pushbutton of a combo box is only displayed for the current cell), you should override this method and invalidate the rectangle of the child object. See CGXComboBox::Init for an example of how to do this.

The base-class version of this method calls CGXGridCore::OnMovedCurrentCell.

See Also

CGXControl::OnInitChildren CGXGridCore::OnMovedCurrentCell

CGXControl

Class Overview | Class Members