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

  1. #ifndef __OOL_XMOUSEEVENT_H__
  2. #define __OOL_XMOUSEEVENT_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  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.    #define MOU_ENTER                     1054
  33.    #define MOU_EXIT                      1055
  34. #endif
  35.  
  36.  
  37. class _export_ XMouseEvent: public XEvent
  38. {
  39.       friend MRESULT HandleDefault( XWindow * w, ULONG msg, MPARAM mp1, MPARAM mp2, BOOL& handled);
  40.    private:
  41.       XMouseEvent( const LONG, const void*, const void*);
  42.       SHORT keyboardState;
  43.    public:
  44.       XPoint p;
  45.       SHORT GetKeyInfo(void ) const { return keyboardState; }
  46. };
  47.  
  48.  
  49. #endif
  50.