Objective Grid: Determining the rows and columns of a selection

Article ID: 695
Last updated: 11 Jun, 2018
Article ID: 695
Last updated: 11 Jun, 2018
Revision: 3
Views: 1978
Posted: 12 Jan, 2001
by Meltreger B.
Updated: 11 Jun, 2018
by Meltreger B.

Problem


How can I determine the columns and rows of a selection?


Cause



Action


You can iterate through all selected ranges with following method.

CGXRangeList selList;

if (!CopyRangeList(selList, TRUE))

return;
POSITION pos = selList.GetHeadPosition( );

while (pos)
{

CGXRange range = selList.GetNext(pos);
}

If you only want to know the newest selection:

CGXRangeList selList;

if (!CopyRangeList(selList, TRUE))

return;
CGXRange range = selList.GetTail( );

This article was:   Helpful | Not helpful
Report an issue
Article ID: 695
Last updated: 11 Jun, 2018
Revision: 3
Views: 1978
Posted: 12 Jan, 2001 by Meltreger B.
Updated: 11 Jun, 2018 by Meltreger B.

Others in this category