home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool.zip / OOL / include / xmousevn.h < prev    next >
Text File  |  1997-04-02  |  2KB  |  48 lines

  1. #ifndef __OOL_XMOUSEEVENT_H__
  2. #define __OOL_XMOUSEEVENT_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------- OS/2 Beta 1 */
  6. /*===========================================================================*/
  7. /*                              class: XMouseEvent                           */
  8. /*                       derived from: XEvent                                */
  9. /*                        last update: 12/96                                 */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13. #include "xevent.h"
  14. #include "xpoint.h"
  15.  
  16.  
  17. #ifdef OOL_FOR_OS2_X86
  18.    #define MOU_BTN1CLICK                 1
  19.    #define MOU_BTN1DBLCLICK              2
  20.    #define MOU_BTN1DOWN                  3
  21.    #define MOU_BTN1UP                    4
  22.    #define MOU_BTN2CLICK                 5
  23.    #define MOU_BTN2DBLCLICK              6
  24.    #define MOU_BTN2DOWN                  7
  25.    #define MOU_BTN2UP                    8
  26.    #define MOU_BTN3CLICK                 9
  27.    #define MOU_BTN3DBLCLICK              10
  28.    #define MOU_BTN3DOWN                  11
  29.    #define MOU_BTN3UP                    12
  30.    #define MOU_INITDRAG                  WM_INITDRAG
  31.    #define MOU_MOVE                      WM_MOUSEMOVE
  32. #endif
  33.  
  34.  
  35. class _export_ XMouseEvent: public XEvent
  36. {
  37.       friend MRESULT HandleDefault( XWindow * w, ULONG msg, MPARAM mp1, MPARAM mp2, BOOL& handled);
  38.    private:
  39.       XMouseEvent( const LONG, const void*, const void*);
  40.       SHORT keyboardState;
  41.    public:
  42.       XPoint p;
  43.       SHORT GetKeyInfo(void ) const { return keyboardState; }
  44. };
  45.  
  46.  
  47. #endif
  48.