home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xcntevnt.h < prev    next >
Text File  |  1997-08-12  |  2KB  |  55 lines

  1. #ifndef __OOL_XCONTAINEREVENT_H__
  2. #define __OOL_XCONTAINEREVENT_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XContainerEvent                       */
  8. /*                       derived from: XEvent                                */
  9. /*                        last update: 12/96                                 */
  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.  
  20.    #define CON_BEGINEDIT    CN_BEGINEDIT
  21.    #define CON_COLLAPSTREE  CN_COLLAPSTREE
  22.    #define CON_CONTEXTMENU  CN_CONTEXTMENU
  23.    #define CON_DRAGOVER     CN_DRAGOVER
  24.    #define CON_DROP         CN_DROP
  25.    #define CON_EMPHASIS     CN_EMPHASIS
  26.    #define CON_ENDEDIT      CN_ENDEDIT
  27.    #define CON_ENTER        CN_ENTER
  28.    #define CON_EXPANDTREE   CN_EXPANDTREE
  29.    #define CON_INITDRAG     CN_INITDRAG
  30.    #define CON_PAINTBACKGOUND CM_PAINTBACKGROUND
  31.    #define CON_REALLOC      CN_REALLOCPSZ
  32. #endif
  33.  
  34.  
  35. class XContainerObject;
  36.  
  37.  
  38. class XContainerControl;
  39.  
  40.  
  41. class _export_ XContainerEvent: public XControlEvent
  42. {
  43.       friend MRESULT HandleFrameDefault( XFrameWindow * w, ULONG msg, MPARAM mp1, MPARAM mp2, BOOL& handled);
  44.       friend MRESULT HandleDefault( XWindow * w, ULONG msg, MPARAM mp1, MPARAM mp2, BOOL& handled);
  45.    protected:
  46.       RECORDCORE * core;
  47.       XContainerEvent( const XContainerControl * w, const MPARAM mp1, const MPARAM mp2);
  48.    public:
  49.       XContainerControl * GetWindow(void) const { return (XContainerControl *) XControlEvent::GetWindow(); }
  50.       XContainerObject * GetObject( void );
  51. };
  52.  
  53.  
  54. #endif
  55.