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 / iproppg2.h < prev    next >
C/C++ Source or Header  |  1996-05-21  |  2KB  |  55 lines

  1. /*
  2.  * IPROPPG2.H
  3.  *
  4.  * Header for template IPropertyPage2 interface implementation.
  5.  *
  6.  * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  7.  *
  8.  * Kraig Brockschmidt, Microsoft
  9.  * Internet  :  kraigb@microsoft.com
  10.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  11.  */
  12.  
  13.  
  14. #ifndef _IPROPPG2_H_
  15. #define _IPROPPG2_H_
  16.  
  17. #define INC_CONTROLS
  18. #include <inole.h>
  19.  
  20. class CImpIPropertyPage2;
  21. typedef class CImpIPropertyPage2 *PCImpIPropertyPage2;
  22.  
  23. class CImpIPropertyPage2 : public IPropertyPage2
  24.     {
  25.     protected:
  26.         ULONG           m_cRef;      //Interface reference count
  27.         LPVOID          m_pObj;      //Backpointer to the object
  28.         LPUNKNOWN       m_pUnkOuter; //For delegation
  29.  
  30.     public:
  31.         CImpIPropertyPage2(LPVOID, LPUNKNOWN);
  32.         ~CImpIPropertyPage2(void);
  33.  
  34.         STDMETHODIMP QueryInterface(REFIID, LPVOID *);
  35.         STDMETHODIMP_(ULONG) AddRef(void);
  36.         STDMETHODIMP_(ULONG) Release(void);
  37.  
  38.         STDMETHODIMP SetPageSite(LPPROPERTYPAGESITE);
  39.         STDMETHODIMP Activate(HWND, LPCRECT, BOOL);
  40.         STDMETHODIMP Deactivate(void);
  41.         STDMETHODIMP GetPageInfo(LPPROPPAGEINFO);
  42.         STDMETHODIMP SetObjects(ULONG, LPUNKNOWN *);
  43.         STDMETHODIMP Show(UINT);
  44.         STDMETHODIMP Move(LPCRECT);
  45.         STDMETHODIMP IsPageDirty(void);
  46.         STDMETHODIMP Apply(void);
  47.         STDMETHODIMP Help(LPCOLESTR);
  48.         STDMETHODIMP TranslateAccelerator(LPMSG);
  49.  
  50.         STDMETHODIMP EditProperty(DISPID dispid);
  51.     };
  52.  
  53.  
  54. #endif //_IPROPPG2_H_
  55.