home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 October / Chip_1997-10_cd.bin / tema / sybase / powerj / hpp.z / WEVENTD.HPP < prev    next >
C/C++ Source or Header  |  1996-10-18  |  1KB  |  48 lines

  1. //
  2. // weventd.hpp
  3. //
  4.  
  5. #ifndef _WEVENTD_HPP_INCLUDED
  6. #define _WEVENTD_HPP_INCLUDED
  7.  
  8.     #ifndef _WNO_PRAGMA_PUSH
  9.     #pragma pack(push,8);
  10.     #pragma enum int;
  11.     #endif
  12.     
  13.     #ifndef _WEVENT_HPP_INCLUDED
  14.     #  include "wevent.hpp"
  15.     #endif
  16.     #ifndef _WPOINT_HPP_INCLUDED
  17.     #  include "wpoint.hpp"
  18.     #endif
  19.  
  20.     /* Event structure -- this is the common structure everyone
  21.        must use */
  22.  
  23.     struct WCMCLASS WEventData {
  24.         WObject *       eventObject;     // object that generated event
  25.         WEventHandler   eventHandler;    // current event handler
  26.         WEventID        eventID;         // type of event
  27.         WLong           returns;         // the return value
  28.         void *          userData;        // per-event userdata
  29.         WInt            handlerIndex;    // the index of this event handler
  30.     };
  31.  
  32.     //
  33.     // Create event
  34.     //
  35.  
  36.     struct WCMCLASS WCreateEventData : public WEventData {
  37.         WULong          createData;    // data from lParam
  38.         WBool           isDialog;      // TRUE if a dialog
  39.         WWindowHandle   focusWindow;   // for dialogs only -- user can change
  40.     };
  41.  
  42. #ifndef _WNO_PRAGMA_PUSH
  43. #pragma enum pop;
  44. #pragma pack(pop);
  45. #endif
  46.  
  47. #endif
  48.