home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ool.zip
/
OOL
/
include
/
xscrlwnd.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-03-07
|
2KB
|
63 lines
#ifndef __OOL_XSCROLLWND_H__
#define __OOL_XSCROLLWND_H__
/*===========================================================================*/
/* OOL ------------------- the Open Object Library ------------- OS/2 Beta 1 */
/*===========================================================================*/
/* class: XScrollWindow */
/* derived from: XFrameWindow */
/* last update: 12/96 */
/* programmed by: Stefan von Brauk (sbrauk@gwdg.de) */
/*===========================================================================*/
#include "xfrmwnd.h"
class XScrollBar;
class XResource;
class XSize;
class _export_ XScrollWindow: public XFrameWindow
{
friend class scrollhandler;
private:
void AddDummy(void);
void DeleteDummy( void);
protected:
void CalcHorzSize( void );
void CalcVertSize( void );
LONG virtualX, virtualY, scrollPosX, scrollPosY;
SHORT xStep, yStep, xPage, yPage;
SWP clientSwp;
public:
XScrollWindow( const XResource * resource = NULL,
const char * title=NULL,
const ULONG createstyle = XFrameWindow::defaultStyle,
const XRect * rec = NULL,
const XFrameWindow * parent = NULL,
const BOOL buildFromResource = FALSE,
const BOOL animate = FALSE);
virtual ~XScrollWindow();
void AddVertScroller( void );
void AddHorzScroller( void );
void DeleteVertScroller( void );
void DeleteHorzScroller( void );
void DoSize( XSize*);
LONG GetHorzPos( void ) { return scrollPosX; }
XScrollBar * GetHorzScroller(void) { return horz; }
LONG GetVertPos( void ) { return scrollPosY; }
XScrollBar * GetVertScroller(void) { return vert; }
virtual void HScroll( LONG );
void SetVirtualX( const LONG x);
void SetVirtualY( const LONG y);
void SetXPageSize( const SHORT p) { xPage = p; }
void SetYPageSize( const SHORT p) { yPage = p; }
void SetXStepSize( const SHORT p) { xStep = p; }
void SetYStepSize( const SHORT p) { yStep = p; }
/// virtual MRESULT HandleMessage(ULONG msg, MPARAM mp1, MPARAM mp2);
virtual void VScroll( LONG );
};
#endif