CGXGridCore::DoScroll

virtual BOOL DoScroll(int direction, ROWCOL nCell);

direction

  • Specifies the scrolling direction:

  • GX_UPScrolls up

  • GX_DOWN Scrolls down

  • GX_LEFTScrolls left

GX_RIGHT Scrolls right

nCell

Specifies the number of rows or columns to be scrolled.

Return Value

TRUE if area has been scrolled; it is FALSE if no scrolling was possible.

Remarks

Scrolls the view in the specified direction. After scrolling the view, areas that are scrolled into the view remain invalid. You can update them by calling UpdateWindow.

Scrollbar event handlers (OnVScroll, OnHScroll), SetTopRow and SetLeftCol call DoScroll to scroll the current view.

When the view has been scrolled, DoScroll calls the notification methods OnTopRowChanged or OnLeftColChanged.

In a splitter window, the corresponding pane will be scrolled, too.

See Also

 CGXGridCore::GetLeftCol  CGXGridCore::GetTopRow  CGXGridCore::OnTopRowChanged  CGXGridCore::OnLeftColChanged

CGXGridCore

 Class Overview |  Class Members