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

  1. #ifndef __OOL_XCONTROLEVENT_H__
  2. #define __OOL_XCONTROLEVENT_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------- OS/2 Beta 1 */
  6. /*===========================================================================*/
  7. /*                              class: XControlEvent                         */
  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.  
  15. //standard control events
  16. #define WIN_CHANGED   1
  17. #define WIN_DBLCLICK  2
  18. #define WIN_PAINT     3
  19. #define WIN_ENTER     4
  20. #define WIN_VSCROLL   5
  21. #define WIN_HSCROLL   6
  22. #define WIN_SETFOCUS  7
  23. #define WIN_KILLFOCUS 8
  24. #define WIN_SELECTED  9
  25. #define WIN_SHOWLIST  10
  26. #define WIN_TRACK     11
  27. #define WIN_UPARROW   12
  28. #define WIN_DOWNARROW 13
  29. #define WIN_ENDTRACK  14
  30.  
  31. //media control events
  32. #define MEDIA_PLAYED   300
  33. #define MEDIA_PAUSED   301
  34. #define MEDIA_REWINDED 302
  35.  
  36.  
  37.  
  38.  
  39. #define WIN_FONTCHANGED  15
  40. #define WIN_BACKCOLCHANGED   16
  41. #define WIN_FRONTCOLCHANGED  17
  42.  
  43.  
  44. class XWindow;
  45. class XFrameWindow;
  46.  
  47. class _export_ XControlEvent: public XEvent
  48. {
  49.       friend MRESULT HandleFrameDefault( XFrameWindow * w, ULONG msg, MPARAM mp1, MPARAM mp2, BOOL& handled);
  50.       friend MRESULT HandleDefault( XWindow * w, ULONG msg, MPARAM mp1, MPARAM mp2, BOOL& handled);
  51.       friend MRESULT EXPENTRY userProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  52.       friend MRESULT EXPENTRY bookProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  53.    protected:
  54.       XControlEvent( const LONG event): XEvent(event) {;}
  55.       XControlEvent( XWindow *, const void*, const void*);
  56.       LONG windowID;
  57.       XWindow * window;
  58.    public:
  59.       XWindow * GetWindow(void) const { return window; }
  60.       LONG GetWindowID( void ) const { return windowID; }
  61. };
  62.  
  63. #endif
  64.