CGXGridCore::StoreMoveCols

virtual BOOL StoreMoveCols(ROWCOL nFromCol, ROWCOL nToCol, ROWCOL nDestCol, BOOL bProcessed = FALSE);?

nFromCol

Specifies the first column.

nToCol

Specifies the last column.

nDestCol

Specifies the destination column.

bProcessed

Specifies if moving columns has been processed in an overridden method. You should set this value to TRUE when you call the base-class version.

Return Value

TRUE if data have been actualized; it is FALSE if moving columns is not supported.

Remarks

Overridable method which moves columns in the data-structure.

You should override this method if you do maintain the data in your own classes.

Please note that if you do override this method, you should call the base-class version of this method setting bProcessed to TRUE.See StoreInsertCols for an example.

The base-class version moves rows in the internal column-widths-map, the selected ranges-list, the covered cells-list and the cell formattings-map.

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 ImplementMoveRowsCols 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. A warning will be displayed in the debug window.

END Control-Factory Specific

See Also

 CGXGridCore::StoreInsertCols

CGXGridCore

 Class Overview |  Class Members