home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool.zip / OOL / include / xbookpg.h < prev    next >
C/C++ Source or Header  |  1997-02-23  |  2KB  |  55 lines

  1. #ifndef __OOL_BOOKPAGE_H__
  2. #define __OOL_BOOKPAGE_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------- OS/2 Beta 1 */
  6. /*===========================================================================*/
  7. /*                              class: XBookPage                             */
  8. /*                       derived from: XWindow                               */
  9. /*                        last update: 12/96                                 */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14. #include  "xnotebk.h"
  15.  
  16. class XColor;
  17. class XBitmap;
  18. class XResource;
  19.  
  20. #ifdef OOL_FOR_OS2_X86
  21.    #define BP_LAST            0x0002
  22.    #define BP_FIRST            0x0004
  23.    #define BP_NEXT            0x0008
  24.    #define BP_PREV            0x0010
  25.    #define BP_TOP                0x0020
  26.  
  27.    #define BP_MAJORTAB        0x0001
  28.    #define BP_MINORTAB        0x0002
  29.    #define BP_PAGEBUTTON    0x0100
  30.  
  31.    #define BP_STATUSTEXTON    0x0001
  32.    #define BP_MAJOR            0x0040
  33.    #define BP_MINOR            0x0080
  34. #endif
  35.  
  36.  
  37. class _export_ XNoteBookPage: public XWindow
  38. {
  39.    protected:
  40.       XNoteBook * owner;
  41.       ULONG id;  
  42.    public:
  43.       XNoteBookPage( const XNoteBook*, const USHORT style = BP_MAJOR|BP_STATUSTEXTON, const USHORT order = BKA_LAST, const char * title = NULL, const XNoteBookPage * insertBehind=NULL, const XResource * res = NULL);
  44.       void GetBackgroundColor ( XColor * col );
  45.       LONG GetID(void) const { return id; }
  46.       SHORT GetPageCount( void )const ;
  47.         void SetBitmap( const XBitmap * b);
  48.       void SetStatusText( const char * text) const ;
  49.       void SetText( const char * text);
  50.       void SetTop( void ) const;
  51. };
  52.  
  53.  
  54. #endif
  55.