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 / ActiveXApp / CActiveXShadowView.h < prev    next >
Encoding:
Text File  |  1996-12-10  |  2.1 KB  |  63 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    CActiveXView.h                  ©1996 Microsoft Corporation. All rights reserved..
  3. // ===========================================================================
  4.  
  5. #ifndef _H_CActiveXShadowView
  6. #define _H_CActiveXShadowView
  7. #pragma once
  8.  
  9. #include <LView.h>
  10. #include <LCommander.h>
  11. #include <LPeriodical.h>
  12. #include <LAttachment.h>
  13.  
  14. #include "HEADERS.H"
  15.  
  16. class    CActiveXView;
  17. class    CActiveXShadowView : public LView,
  18.                         public LCommander,
  19.                         public LDragAndDrop
  20. {
  21.  
  22. public:
  23.     enum { class_ID = 'actX' };
  24.     static CActiveXShadowView*    CreateActiveXShadowViewStream(LStream *inStream);
  25.  
  26.                         CActiveXShadowView(void);
  27.                         CActiveXShadowView(LStream *inStreamP);
  28.                         ~CActiveXShadowView(void);
  29.  
  30.     // **** LView method overrides ****
  31.     virtual void        Click(SMouseDownEvent &inMouseDown);
  32. //    these are tentative View Class Overrides
  33.     virtual void        ResizeFrameBy(Int16 inWidthDelta, Int16 inHeightDelta, Boolean inRefresh);
  34.     virtual void        MoveBy(Int32 inHorizDelta, Int32 inVertDelta, Boolean inRefresh);
  35.     virtual void        AdaptToNewSurroundings(void);
  36.     virtual void        AdaptToSuperFrameSize(Int32 inSurrWidthDelta, Int32 inSurrHeightDelta, Boolean inRefresh);
  37.     virtual void        ScrollImageBy(Int32 inLeftDelta, Int32 inTopDelta, Boolean inRefresh);
  38.     virtual void        ResizeImageBy(Int32 inWidthDelta, Int32 inHeightDelta, Boolean inRefresh);
  39. //    end tentative
  40.  
  41.     // **** LCommander method overrides ****
  42.     virtual void        DoEvent(EventRecord *inEvent, Boolean *outPassEventUp, Boolean *outRemoveAttachment);
  43.  
  44.     // **** CActiveXShadowView methods ****
  45.     void                SetMasterView(CActiveXView *inMasterView);
  46.  
  47. protected:
  48.     static    void        FindMasterView(CActiveXShadowView* inView);
  49.     virtual void        DrawSelf();
  50.  
  51.     //    Drag and Drop functions
  52.     virtual Boolean        ItemIsAcceptable( DragReference inDragRef, ItemReference inItemRef );
  53.     virtual void        ReceiveDragItem( DragReference inDragRef, DragAttributes inDragAttrs,
  54.                             ItemReference inItemRef, Rect &inItemBounds );
  55.  
  56.  
  57. private:
  58.     CActiveXView*        mMasterView;
  59.     Int16                mMasterViewID;
  60.     Boolean8            mContextDirty;
  61. };
  62.  
  63. #endif