home *** CD-ROM | disk | FTP | other *** search
/ ...taking it to the Macs! / ...taking it to the Macs!.iso / Extras / ActiveX Mac SDK / ActiveX SDK / Containers / SimpleApp / CDragDrop.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-20  |  603 b   |  25 lines  |  [TEXT/CWIE]

  1. class CDragDrop
  2. {
  3. public:
  4.     static CDragDrop*     NewDragDrop(WindowPtr pWindow);
  5.     void                DisposeDragDrop(void);
  6.  
  7.     void EnterWindow(DragReference DragRef, WindowPtr pWindow);
  8.     void LeaveWindow(DragReference DragRef);
  9.     void LeaveHandler(DragReference DragRef) { LeaveWindow(DragRef); }
  10.     
  11.     void Drop(DragReference DragRef);
  12.     
  13. private:
  14.     Boolean                    DragOkay;
  15.     Boolean                    IsOurDrag;
  16.     WindowPtr                Window;
  17.     DragTrackingHandlerUPP    DragTrackingHandler;    
  18.     DragReceiveHandlerUPP    DragReceiveHandler;
  19.     
  20.     CDragDrop(void);
  21.     OSErr                Initialize(WindowPtr pWindow);
  22.     Boolean             DragItemsOkay(DragReference DragRef);
  23. };
  24.  
  25.