<< Return to Main Index

< Return to Class Index

CGXMapDWordToLong::Move

void Move(DWORD nFrom, DWORD nTo, DWORD nDest);

nFrom

Specifies the first element.

nTo

Specifies the last element.

nDest

Specifies the destination.

Remarks

Moves the elements.

Each element in the map has an id and a value. When used for row heights, the id specifies the row and the value specifies the height. When you move rows in the grid, and call Move for this map, values will not be really moved. Only their id will be changed.

For example:

Row 1 is 10, row 2 is 30 and row 5 is 20.

Now, you call Move(2,2,3)

Row 1 will still be 10, row 3 (previous 2) will be 30 and row 5 will still be 20.

CGXMapDWordToLong

Class Overview | Class Members