Index

# XScrollWindow

XFrameWindow &rarrXScrollWindow

public
- GetHorzPos
- GetHorzScroller
- GetVertPos
- GetVertScroller
- HandleMessage
- SetXPageSize
- SetXStepSize
- SetYPageSize
- SetYStepSize
- ~XScrollWindow
- constructors/destructors
- XScrollWindow
- misc
- AddHorzScroller
- AddVertScroller
- DeleteHorzScroller
- DeleteVertScroller
- scroll-functions
- HScroll
- SetVirtualX
- SetVirtualY
- VScroll

#### Derrived

: public XFrameWindow

## public

###

GetHorzPos

#### Definition

`

LONG GetHorzPos ( void )

`

#### Returns

LONG

###

GetHorzScroller

#### Definition

`

XScrollBar* GetHorzScroller ( void )

`

#### Returns

XScrollBar*

###

GetVertPos

#### Definition

`

LONG GetVertPos ( void )

`

#### Returns

LONG

###

GetVertScroller

#### Definition

`

XScrollBar* GetVertScroller ( void )

`

#### Returns

XScrollBar*

###

HandleMessage

#### Definition

`

MRESULT HandleMessage ( ULONG msg, MPARAM mp1, MPARAM mp2 )

virtual MRESULT HandleMessage ( ULONG msg, MPARAM mp1, MPARAM mp2 )

`

#### Returns

MRESULT

###

SetXPageSize

#### Definition

`

void SetXPageSize ( SHORT p )

`

#### Returns

void

###

SetXStepSize

#### Definition

`

void SetXStepSize ( SHORT p )

`

#### Returns

void

###

SetYPageSize

#### Definition

`

void SetYPageSize ( SHORT p )

`

#### Returns

void

###

SetYStepSize

#### Definition

`

void SetYStepSize ( SHORT p )

`

#### Returns

void

###

~XScrollWindow

#### Definition

`

~XScrollWindow ( )

virtual ~XScrollWindow ( )

`

#### Returns

-

## constructors/destructors

###

XScrollWindow

constructs a frame-window which does scrolling automaticaly. Note that destructors of windows are called automaticaly when a window is closed! (see ~XFrameWindow)

#### Definition

`

XScrollWindow ( XResource* resource, char* title, ULONG style, XRect* rec, XFrameWindow* parent, BOOL build ):XFrameWindow ( resource, title, style, rec, parent, build )

XScrollWindow ( XResource* resource = NULL, char* title=NULL, ULONG createstyle = defaultStyle, XRect* rec = NULL, XFrameWindow* parent = NULL, BOOL buildFromResource = FALSE )

`

#### Parameters

: XResource * theResourceID a XResource contains two informations, an ID and a pointer to a XResourceLibrary. If you want to create a window out of a resourcefile you must specify the ID (otherwise it can be zero) and the XResourceLibrary which contains the window-resource. The window which is created always belongs to the process who owns the resource library, so if you work with multiple processes every process must have its own resource library. char * theTitle The title of the window which is displayed in the titlebar ULONG theStyleofWindow You can specify the style of the window with the following defines, which can be or-ed:

FRM_TITLEBAR the window gets a titlebar FRM_SYSMENU the window gets the system menu FRM_MINBUTTON the titlebar get a button to minimize the window FRM_MAXBUTTON the titlebar get a button to maximize the window

FRM_CENTER the window is created in the midle of the workplace

FRM_SIZEBORDER the windowsize can be changed by the user FRM_DIALOGBORDER the window gets a thick border FRM_BORDER the window gets a thin border

FRM_TASKLIST the window is displayed in the tasklist

FRM_NOMOVEWITHOWNER the window dontīt move when the parent is moved FRM_ICON the window get an icon wich is identified by theResourceID, if the icon is not found in the resource-library, an error ocurses FRM_ACCELTABLE FRM_SYSMODAL the window is displayed system-modal FRM_SCREENALIGN FRM_MOUSEALIGN FRM_HIDEBUTTON FRM_HIDEMAX FRM_AUTOICON

there are three static member-variables for default styles

long defaultStyle default setting for a framewindow long defaultClientStyle default setting for windows wich are displayed as a clientwindow of a framewindow long defaultDialogStyle default setting for windows wich are displayed as a dialog

Default is defaultStyle. XRect * theRectangle On default a window is created with length and hight of zero. Windows which are created with an resource template get the size of the template. Default is NULL. If theRectangle is specified, the window gets the size of it. XFrameWindow * parent If parent is specified the window is a client of the parent. The behavior depends on the styles you have set. Default is NULL. BOOL buildFromResource If this variable is set OOL try to build the window with a resource template which is identified by theResourceID. If the template is not found, an error ocurses. Default is FALSE.

#### Returns

-

-

## misc

###

AddHorzScroller

display an horizontal scroller

#### Definition

`

void AddHorzScroller ( void )

`

#### Parameters

: -

#### Returns

void

-

###

AddVertScroller

display an vertical scroller

#### Definition

`

void AddVertScroller ( void )

`

#### Parameters

: -

#### Returns

void

-

###

DeleteHorzScroller

removes the horizontal scroller

#### Definition

`

void DeleteHorzScroller ( void )

`

#### Parameters

: -

#### Returns

void

-

###

DeleteVertScroller

removes the vertical scroller

#### Definition

`

void DeleteVertScroller ( void )

`

#### Parameters

: -

#### Returns

void

-

## scroll-functions

###

HScroll

this function is called when the window-contents must be scrolled horizontal. On default scrolling is done automaticaly

#### Definition

`

void HScroll ( LONG s )

virtual void HScroll ( LONG )

`

#### Parameters

: LONG s how much pixel to scroll

#### Returns

void

-

###

SetVirtualX

set the virtual x-size of the window

#### Definition

`

void SetVirtualX ( LONG x )

`

#### Parameters

: LONG x virtual x-size

#### Returns

void

-

###

SetVirtualY

set the virtual y-size of the window

#### Definition

`

void SetVirtualY ( LONG y )

`

#### Parameters

: LONG y virtual y-size

#### Returns

void

-

###

VScroll

this function is called when the window-contents must be scrolled vertcal. On default scrolling is done automaticaly

#### Definition

`

void VScroll ( LONG s )

virtual void VScroll ( LONG )

`

#### Parameters

: LONG s how much pixel to scroll

#### Returns

void

-

Created by AutoDoc, (C) 1996 by Jens von Pilgrim