#include <ChartScrollBar.h>
Public Member Functions | |
void | CreateScrollBar (const CRect &PlottingRect) |
Creates the scroll bar within a specified rectangle. | |
void | OnHScroll (UINT nSBCode, UINT nPos) |
Called on horizontal scrolling. | |
void | OnVScroll (UINT nSBCode, UINT nPos) |
Called on vertical scrolling. | |
void | Refresh () |
Refreshes the scroll bar position. | |
void | SetEnabled (bool bEnabled) |
Enables/disables the scroll bar. | |
bool | GetEnabled () const |
Returns true if the scroll bar is enabled. | |
void | SetAutoHide (bool bAutoHide) |
Enables/disables the auto-hide mode. | |
bool | GetAutoHide () const |
Returns true if the auto-hide mode is activated. | |
void | OnMouseEnter () |
Called when the mouse enters the scroll bar area. | |
void | OnMouseLeave () |
Called when the mouse leaves the scroll bar area. |
This class is used internally by the CChartAxis class.
void CChartScrollBar::SetAutoHide | ( | bool | bAutoHide | ) | [inline] |
Enables/disables the auto-hide mode.
In auto-hide mode, the scroll bar is not visible unless the mouse is over the region of the scroll bar.