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

  1. #ifndef __OOL_XNOTEBOOK_H__
  2. #define __OOL_XNOTEBOOK_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------- OS/2 Beta 1 */
  6. /*===========================================================================*/
  7. /*                              class: XNoteBook                             */
  8. /*                       derived from: XControl                              */
  9. /*                        last update: 12/96                                 */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14. #include  "xcontrol.h"
  15.  
  16. #ifdef OOL_FOR_OS2_X86
  17.    #define NB_BACKPAGESBR            0x0001
  18.    #define NB_BACKPAGESBL            0x0002
  19.    #define NB_BACKPAGESTR            0x0004
  20.    #define NB_BACKPAGESTL            0x0008
  21.    #define NB_MAJORTABRIGHT        0x0010
  22.    #define NB_MAJORTABLEFT            0x0020
  23.    #define NB_MAJORTABTOP            0x0040
  24.    #define NB_MAJORTABBOTTOM        0x0080
  25.    #define NB_SQUARETABS            0x0000
  26.    #define NB_ROUNDEDTABS            0x0100
  27.    #define NB_POLYGONTABS            0x0200
  28.    #define NB_SOLIDBIND               0x0000
  29.    #define NB_SPIRALBIND            0x0400
  30.    #define NB_STATUSTEXTLEFT        0x0000
  31.    #define NB_STATUSTEXTRIGHT        0x1000
  32.    #define NB_STATUSTEXTCENTER    0x2000
  33.    #define NB_TABTEXTLEFT            0x0000
  34.    #define NB_TABTEXTRIGHT           0x4000
  35.    #define NB_TABTEXTCENTER        0x8000
  36.     #define NB_TABBEDDIALOG            0x800
  37. #endif
  38.  
  39. class _export_ XNoteBook: public XControl{
  40.       friend void BuildChilds( HWND );
  41.       friend class XBookPage;
  42.       LONG color;
  43.    protected:
  44.       XNoteBook( const HWND hwnd):XControl(hwnd) {;}
  45.    public:
  46.       XNoteBook( const XWindow * owner, const XRect * rec, const USHORT id = 0, const ULONG style = NB_SOLIDBIND|NB_BACKPAGESBR|NB_SQUARETABS|NB_TABTEXTCENTER|NB_STATUSTEXTLEFT, char * font = NULL);
  47.       void GetBackgroundColor( XColor * col ) { col->SetColor( color ); }
  48.       SHORT GetPageCount( void ) const ;
  49.       void SetBackgroundColor( const XColor * col );
  50.       void SetMajorTabSize( const SHORT width, const SHORT height) const ;
  51.       void SetMinorTabSize( const SHORT width, const SHORT height) const ;
  52.       void SetMajorBackgroundColor( const XColor * col ) const ;
  53.       void SetMajorForegroundColor( const XColor * col ) const ;
  54.       void SetMinorBackgroundColor( const XColor * col ) const ;
  55.       void SetMinorForegroundColor( const XColor * col ) const ;
  56. };
  57.  
  58.  
  59. #endif
  60.