CGXGridCore::UpdateScrollbars
virtual void UpdateScrollbars(BOOL bRedraw = TRUE, BOOL bOnlyIfDimensionChanged = FALSE );
bRedraw
Specifies if the area previously hidden by a scrollbar shall be redrawn when a visible scrollbar is hidden.
bOnlyIfDimensionChanged
If FALSE, scrollbars will be updated whether the grid dimension has changed or not. If TRUE, the grid dimension (determined with GetRowCount, GetColCount) will be compared with the dimension stored in the previous call to UpdateScrollbars.
Remarks
Updates the scrollbars unless they have been explicitly locked with LockScrollbars.
The parameter bOnlyIfDimensionChanged is useful when you have a grid where the row count is not known and you do have to estimate it. This is the case if you are browsing ODBC data sources. If the parameter is TRUE and the row count did not change since the last call to UpdateScrollbars, the scrollbars will not be updated.
See Also
CGXGridCore::LockScrollbars CGXGridCore::OnTestGridDimension CGXGridCore::GetRowCount CGXGridCore::GetColCount