CGXGridCore::OnStartAutoFillSelection

virtual BOOL OnStartAutoFillSelection(CGXRange& rgStart, UINT& flags, CPoint& point); ?

RgStart

A reference to the range-object with the beginning coordinates from which autofill will be performed.

flags

Indicates whether various virtual keys are down. This parameter can be any combination of the following values:·MK_CONTROL - Set if the CTRL key is down.·MK_LBUTTON - Set if the left mouse button is down.·MK_MBUTTON - Set if the middle mouse button is down.·MK_RBUTTON - Set if the right mouse button is down.·MK_SHIFT - Set if the SHIFT key is down.

point

Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the window.

Return Value

Return TRUE if you want to start auto fill drag selection, FALSE if you want to disable selection.

Remarks

This method is called when the user begins an auto fill selection by clicking on the auto fill handle of a selected range of cells.

You can override this method if you want to restrict the start range to specific areas. You only need to modify the range passed with rgStart to do this and return TRUE.

Return FALSE if you do not want to start auto fill for this beginning range.

See Also

 CGXGridCore::CanChangeAutoFillSelection  CGXGridCore::DoAutoFill  CGXGridCore::OnAutoFillDone

CGXGridCore

 Class Overview |  Class Members