NWinScrollBaris a class whose objects are instantiated internally whenever windows with scrollbars are created. Windows with scrollbars are special types of windows in that the scrollbars are part of the window itself. In contrast, scrollbars of the
NScrollBarclass are not attached to the window and can be resized or moved around inside the window. Classes such as
NWinScrollBarwhenever they are created with a special constructor that informs the scroller or scrolltext object that it should use the window's attached scrollbars instead of their own unattached scrollbars.
NWinScrollBardirectly. Instead, you create a window and specify as one of its XVT Portability Toolkit attributes
WSF_HSCROLL. The window will have scrollbars, and objects of the
NWinScrollBarclass will be instantiated to manage those scrollbars.
CNativeView. The drawing properties of native views are system-defined.
theEnclosureis a pointer to the view that is the enclosure of the scrollbar, usually a window.
theDirectionindicates whether the scrollbar is horizontal or vertical.
NWinScrollBar(const NWinScrollBar& theScrollBar);
const NWinScrollBar& theScrollBar);
virtual void Size(const CRect& theNewSize);
virtual void SetTitle(const CStringRW& theTitle);
virtual void Hide(void);
virtual void Show(void);
virtual void SetEnclosure(CSubview *theEnclosure);
virtual void Enable(void);
virtual void Disable(void);
virtual SCROLL_TYPE GetSBType(void) const;
VSCROLL, depending on whether the direction is horizontal or vertical, or
HVSCROLL, which designates an unattached scrollbar.
virtual void Close(void);
virtual void CreateControl(void);