[]
Calculates the new position of a scrollbar in response to a user command.
protected virtual int OnChangeScrollBarPosition(int cmd, bool verticalBar, int curPos, int trackPos)
Type | Name | Description |
---|---|---|
int | cmd | Scroll command (SB_LINEUP, etc). |
bool | verticalBar | True for the vertical scrollbar, false for the horizontal scrollbar. |
int | curPos | Current scrollbar position. |
int | trackPos | Scrollbar thumb position. |
Type | Description |
---|---|
int | The new position for the scrollbar. |
Derived classes may override this method to customize the scrolling behavior.