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

  1. #ifndef __OOL_XCONTDRAGEVENT_H__
  2. #define __OOL_XCONTDRAGEVENT_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------- OS/2 Beta 1 */
  6. /*===========================================================================*/
  7. /*                              class: XContainerDragEvent                   */
  8. /*                       derived from: XContainerEvent                       */
  9. /*                        last update: 12/96                                 */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13. #include "xcntevnt.h"
  14. #include "xdragitm.h"
  15.  
  16. class _export_  XContainerDragEvent: public XContainerEvent
  17. {
  18.       friend MRESULT HandleFrameDefault( XFrameWindow * w, ULONG msg, MPARAM mp1, MPARAM mp2, BOOL& handled);
  19.       friend MRESULT HandleDefault( XWindow * w, ULONG msg, MPARAM mp1, MPARAM mp2, BOOL& handled);
  20.    private:
  21.       XContainerDragEvent( const XWindow *, const MPARAM, const MPARAM);
  22.       SHORT accept;
  23.       SHORT operation;
  24.       DRAGINFO * dragInfo;
  25.       ~XContainerDragEvent();
  26.       PPRINTDEST printer;
  27.    public:
  28.       BOOL GetDragItem( XDragItem * itm, const SHORT index);
  29.       SHORT GetDragItemCount( void ) { return dragInfo ? dragInfo->cditem : -1;}
  30.       BOOL GetDropPos( XPoint * p);
  31.       PRINTDEST * GetPrinterInfo(void) { return printer; }
  32.       OOL_WINDOWHANDLE GetSourceWindow( void ) const { return dragInfo ? dragInfo->hwndSource : 0; }
  33.       SHORT GetDragOperation(void) const { return dragInfo->usOperation; }
  34.       void SetAcceptMode( const SHORT mode) { accept = mode; }
  35.       void SetOperation( const SHORT op) { operation = op; }
  36. };
  37.  
  38.  
  39. #endif
  40.