<< Return to Main Index

< Return to Class Index

CGXGridCore::EvalFloatCells

BOOL EvalFloatCells(const CGXRange& range, BOOL bUpdate = TRUE, CGXRange* prgBoundary = NULL, BOOL bLookupStyle = FALSE);

range

Specifies the range of cells where floating cells shall be recalculated. With gxnFloatDelayEval, only those cells that are marked as delayed will be recalculated. With gxnFloatEvalOnDisplay all cells in range will be recalculated.

bUpdate

Specifies if the grid shall update changed cells. If bUpdate is FALSE, updating the grid is locked with LockUpdate(TRUE);

prgBoundary

Pointer to a CGXRange object. Can be NULL. If prgBoundary is not NULL, EvalFloatCells will compute a range object that covers all cells that have changed. If you did lock updating the display, you should use this range to efficiently redraw all cells affected by changes with one redraw operation.

bLookupStyle

Reserved. The parameter is ignored.

Remarks

EvalFloatCells is called in Objective Grid when the user scrolls through the grid. EvalFloatCells checks if there are any pending cells that are marked to be recalculated. Each of the marked cells will be checked if its contents fit into the cell or if the cell can float over other cells.

Control-Factory Specific ->

This method has been implemented using the abstraction mechanism as discussed in the chapter "Reducing the size of your application" in the user's guide. A call to the ImplementFloatCells method from within the control factory class' InitializeGridComponents method will make the concrete implementation of this method available to your application.

If no concrete implementation is available this method returns FALSE. No action is performed.

END Control-Factory Specific

See Also

CGXGridCore::SetFloatCellsMode CGXGridCore::DelayFloatCells

CGXGridCore

Class Overview | Class Members