home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / activedocument / doserver / oipobj.h < prev    next >
C/C++ Source or Header  |  1997-05-28  |  2KB  |  59 lines

  1. /**************************************************************************
  2.    THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  3.    ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  4.    THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  5.    PARTICULAR PURPOSE.
  6.  
  7.    Copyright 1997 Microsoft Corporation.  All Rights Reserved.
  8. **************************************************************************/
  9.  
  10. /**************************************************************************
  11.  
  12.    File:          OIPObj.h
  13.    
  14.    Description:   COleInPlaceObject definitions.
  15.  
  16. **************************************************************************/
  17.  
  18. #ifndef OLEINPLACEOBJECT_H
  19. #define OLEINPLACEOBJECT_H
  20.  
  21. /**************************************************************************
  22.    #include statements
  23. **************************************************************************/
  24.  
  25. #include "DOServer.h"
  26.  
  27. /**************************************************************************
  28.  
  29.    CPersistStorage class definition
  30.  
  31. **************************************************************************/
  32.  
  33. class COleDocument;
  34.  
  35. class COleInPlaceObject : public IOleInPlaceObject
  36. {
  37. private:
  38.     COleDocument   *m_pOleDoc;
  39.  
  40. public:
  41.     COleInPlaceObject::COleInPlaceObject(COleDocument*);
  42.     COleInPlaceObject::~COleInPlaceObject();
  43.  
  44.    //IUnknown methods
  45.     STDMETHODIMP QueryInterface(REFIID, LPVOID*);
  46.     STDMETHODIMP_(ULONG) AddRef();
  47.     STDMETHODIMP_(ULONG) Release();
  48.  
  49.     //IOleInPlaceObject methods
  50.     STDMETHODIMP InPlaceDeactivate();
  51.     STDMETHODIMP UIDeactivate() ;
  52.     STDMETHODIMP SetObjectRects(LPCRECT, LPCRECT);
  53.     STDMETHODIMP GetWindow(HWND*) ;
  54.     STDMETHODIMP ContextSensitiveHelp(BOOL);
  55.     STDMETHODIMP ReactivateAndUndo();
  56. };
  57.  
  58. #endif   //OLEINPLACEOBJECT_H
  59.