virtual void OnChangedSelection(const CGXRange* pRange, BOOL bIsDragging, BOOL bKey);?
pRange
A pointer to the range-object with the new coordinates. It is NULL if all ranges have been changed (e.g., all selections have been removed).
bIsDragging
Specifies if the mouse is pressed yet.
bKey
Specifies if the user has selected the cells by pressing SHIFT and an arrow key.
This method is called when a range of cells, rows or columns has been selected, or if the range has been modified.
When the user is selecting cells by dragging the mouse, this method gets called for each new selection as long as the user presses the mouse. When the user releases the mouse button, the method is called with bIsDragging set to FALSE.
This example traces the changed selection.
void CSampleView::OnChangedSelection(const CGXRange* pRange, BOOL, BOOL)
{
if (pRange)
{
TRACE("Selected range of cells: (%ld,%ld) bis (%ld,%ld)\n",
pRange->top, pRange->left, pRange->bottom, pRange->right);
}
}
CGXGridCore::CanChangeSelection CGXGridCore::OnStartSelection
Class Overview | Class Members