CGXGridCore:: CanChangeAutoFillSelection
virtual BOOL CanChangeAutoFillSelection(CGXRange& rgNew, const CGXRange& rgStart);??
RgNew
A reference to the range-object with the new coordinates.
RgStart
A reference to the range-object with the beginning coordinates.
Return Value
Return TRUE if auto fill on the new range is possible, FALSE if not possible
Remarks
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.
You can override this method if you want to restrict the range to be selected to specific areas. You only need to modify the range passed with rgNew to do this and return TRUE.
Returning FALSE will disable this selection and there will effectively be no new selection range for this mouse position.
See Also
CGXGridCore:: OnStartAutoFillSelection CGXGridCore:: DoAutoFill CGXGridCore::OnAutoFillDone