CPagerCtrl Class
The CPagerCtrl class wraps the Windows pager control, which can scroll into view a contained window that does not fit the containing window.
class CPagerCtrl : public CWnd
Members
Public Constructors
Name |
Description |
---|---|
Constructs a CPagerCtrl object. |
Public Methods
Name |
Description |
---|---|
Creates a pager control with specified styles and attaches it to the current CPagerCtrl object. |
|
Creates a pager control with specified extended styles and attaches it to the current CPagerCtrl object. |
|
Enables or disables forwarding WM_MOUSEMOVE messages to the window that is contained in the current pager control. |
|
Retrieves the background color of the current pager control. |
|
Retrieves the border size of the current pager control. |
|
Retrieves the button size of the current pager control. |
|
Retrieves the state of the specified button in the current pager control. |
|
Retrieves the IDropTarget interface for the current pager control. |
|
Retrieves the scroll position of the current pager control. |
|
Indicates whether the specified button of the current pager control is in pressed state. |
|
Indicates whether the specified button of the current pager control is in grayed state. |
|
Indicates whether the specified button of the current pager control is in hot state. |
|
Indicates whether the specified button of the current pager control is in invisible state. |
|
Indicates whether the specified button of the current pager control is in normal state. |
|
Causes the current pager control to recalculate the size of the contained window. |
|
Sets the background color of the current pager control. |
|
Sets the border size of the current pager control. |
|
Sets the button size of the current pager control. |
|
Sets the contained window for the current pager control. |
|
Sets the scroll position of the current pager control. |
Remarks
A pager control is a window that contains another window that is linear and larger than the containing window, and enables you to scroll the contained window into view. The pager control displays two scroll buttons that automatically disappear when the contained window is scrolled to its farthest extent, and reappear otherwise. You can create a pager control that scrolls either horizontally or vertically.
For example, if your application has a toolbar that is not wide enough to show all of its items, you can assign the toolbar to a pager control and users will be able to scroll the toolbar to the left or right to access all of the items. Microsoft Internet Explorer Version 4.0 (commctrl.dll version 4.71) introduces the pager control.
The CPagerCtrl class is derived from the CWnd class. For more information and an illustration of a pager control, see Pager Controls.
Inheritance Hierarchy
CPagerCtrl
Requirements
Header: afxcmn.h