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

  1. #ifndef __OOL_XNOTEBOOK_H__
  2. #define __OOL_XNOTEBOOK_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  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 XNoteBookPage;
  40.  
  41. class _export_ XNoteBook: public XControl{
  42.       friend void BuildChilds( HWND );
  43.       friend class XBookPage;
  44.       LONG color;
  45.    protected:
  46.       XNoteBook( const HWND hwnd):XControl(hwnd) {;}
  47.    public:
  48.       XNoteBook( const XWindow * owner, const XRect& rec=XRect(), const USHORT id = 0, const ULONG style = NB_SOLIDBIND|NB_BACKPAGESBR|NB_SQUARETABS|NB_TABTEXTCENTER|NB_STATUSTEXTLEFT, char * font = NULL);
  49.       virtual ~XNoteBook();
  50.       void CalcClientRect(XRect * out, BOOL client);
  51.       void GetBackgroundColor( XColor * col ) const { col->SetColor( color ); }
  52.       SHORT GetPageCount( void ) const ;
  53.       XNoteBookPage * GetPage( USHORT order = BKA_TOP, ULONG id = 0);
  54.       BOOL RemovePage( XNoteBookPage*);
  55.       BOOL SetBackgroundColor( const XColor * col );
  56.       void SetMajorTabSize( const SHORT width, const SHORT height) const ;
  57.       void SetMinorTabSize( const SHORT width, const SHORT height) const ;
  58.       void SetMajorBackgroundColor( const XColor * col ) const ;
  59.       void SetMajorForegroundColor( const XColor * col ) const ;
  60.       void SetMinorBackgroundColor( const XColor * col ) const ;
  61.       void SetMinorForegroundColor( const XColor * col ) const ;
  62. };
  63.  
  64. #endif
  65.