home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / inole2 / interfac / iconsite.h < prev    next >
C/C++ Source or Header  |  1996-05-21  |  1KB  |  50 lines

  1. /*
  2.  * ICONSITE.H
  3.  *
  4.  * Definitions of a template IOleControlSite interface
  5.  * implementation.
  6.  *
  7.  * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  8.  *
  9.  * Kraig Brockschmidt, Microsoft
  10.  * Internet  :  kraigb@microsoft.com
  11.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  12.  */
  13.  
  14.  
  15. #ifndef _ICONSITE_H_
  16. #define _ICONSITE_H_
  17.  
  18. #define INC_CONTROLS
  19. #include <inole.h>
  20.  
  21. class CImpIOleControlSite;
  22. typedef class CImpIOleControlSite *PCImpIOleControlSite;
  23.  
  24. class CImpIOleControlSite : public IOleControlSite
  25.     {
  26.     protected:
  27.         ULONG           m_cRef;      //Interface reference count
  28.         LPVOID          m_pObj;      //Backpointer to the object
  29.         LPUNKNOWN       m_pUnkOuter; //For delegation
  30.  
  31.     public:
  32.         CImpIOleControlSite(LPVOID, LPUNKNOWN);
  33.         ~CImpIOleControlSite(void);
  34.  
  35.         STDMETHODIMP QueryInterface(REFIID, LPVOID *);
  36.         STDMETHODIMP_(ULONG) AddRef(void);
  37.         STDMETHODIMP_(ULONG) Release(void);
  38.  
  39.         STDMETHODIMP OnControlInfoChanged(void);
  40.         STDMETHODIMP LockInPlaceActive(BOOL);
  41.         STDMETHODIMP GetExtendedControl(LPDISPATCH *);
  42.         STDMETHODIMP TransformCoords(POINTL *, POINTF *, DWORD);
  43.         STDMETHODIMP TranslateAccelerator(LPMSG, DWORD);
  44.         STDMETHODIMP OnFocus(BOOL);
  45.         STDMETHODIMP ShowPropertyFrame(void);
  46.     };
  47.  
  48.  
  49. #endif //_ICONSITE_H_
  50.