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

  1. #ifndef __OOL_XNOTEBOOKEVENT_H__
  2. #define __OOL_XNOTEBOOKEVENT_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XNoteBookEvent                        */
  8. /*                       derived from: XEvent                                */
  9. /*                        last update: 5/97                                  */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13. #include "xcntrevn.h"
  14.  
  15.  
  16. #ifdef OOL_FOR_OS2_X86
  17.  
  18.    //message-id∩s
  19.       #define XNOTEBOOK_PAGESELECTED            BKN_PAGESELECTED      
  20.       #define XNOTEBOOK_NEWPAGESIZE               BKN_NEWPAGESIZE
  21.       #define XNOTEBOOK_HELP                     BKN_HELP         
  22.       #define XNOTEBOOK_PAGEDELETED               BKN_PAGEDELETED
  23.       #define XNOTEBOOK_PAGESELECTEDPENDING      BKN_PAGESELECTEDPENDING
  24.  
  25. #endif
  26.  
  27.  
  28. class XNoteBook;
  29. class XNoteBookPage;
  30.  
  31. class _export_ XNoteBookEvent: public XControlEvent
  32. {
  33.       friend MRESULT HandleFrameDefault( XFrameWindow * w, ULONG msg, MPARAM mp1, MPARAM mp2, BOOL& handled);
  34.       friend MRESULT HandleDefault( XWindow * w, ULONG msg, MPARAM mp1, MPARAM mp2, BOOL& handled);
  35.    protected:
  36.       XNoteBookPage * bookPage;
  37.       XNoteBookEvent( const XWindow * w, const void *mp1, const void * mp2);
  38.    public:
  39.       XNoteBook * GetWindow(void) const { return (XNoteBook *) XControlEvent::GetWindow(); }
  40.       XNoteBookPage * GetPage() { return bookPage; }
  41. };
  42.  
  43.  
  44. #endif
  45.