CGXGridCore::CanFloatCell
virtual BOOL CanFloatCell(CGXControl* pControl, ROWCOL nRow, ROWCOL nCol, const CGXStyle& style, BOOL bFloatOrFlood);
pControl
Points to the control object associated with the cell.
nRow
Specifies the row id.
nCol
Specifies the column id.
style
Const reference to the style object with all style information for the cell.
bFloatOrFlood
TRUE if the grid wants to determine if the cell can float over other cells; FALSE if the grid wants to know if the cell can be flooded (hidden) from another floating cell.
Return Value
TRUE if floating the cell or hiding the cell by another floating cell is allowed; FALSE otherwise.
Remarks
Objective Grid calls this method to check if it is possible to float a cell or hide a cell by another floating cell.
CGXGridCore::CanFloatCell checks CGXStyle::SetFloatCell and CGXStyle::SetFloodCell for the given cell. If these settings are enabled, it will check CGXControl::CanFloatCell. Depending on the cell type, CGXControl::CanFloatCell will return TRUE or FALSE.
CGXStatic and derivatives normally support floating cells and will therefore return TRUE. List boxes, combo boxes and rich edit cells don’t support floating cells and will therefore return FALSE.
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
CGXControl::CanFloatCell CGXStyle::SetFloatCell CGXStyle::SetFloodCell