Description


Include file: xscrlwnd.h

Parent class: XFrameWindow

Overview

Functions

XScrollWindow

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.
BOOL animate Enable/disable animation on window creation. Default is FALSE

Remarks

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

HScroll

Parameters

LONG s how much pixels to scroll

Remarks

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

SetVirtualX

Parameters

LONG x virtual x-size

Remarks

Set the virtual x-size of the window

SetVirtualY

Parameters

LONG y virtual y-size

Remarks

Set the virtual y-size of the window

VScroll

Parameters

LONG s how much pixels to scroll

Remarks

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

AddHorzScroller

Remarks

Display a horizontal scroller

AddVertScroller

Remarks

Display a vertical scroller

DeleteHorzScroller

Remarks

Removes the horizontal scroller

DeleteVertScroller

Remarks

Removes the vertical scroller


This document was generated by Jens von Pilgrim's Autodoc