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
/
iviewobj.h
< prev
Wrap
C/C++ Source or Header
|
1996-05-21
|
2KB
|
54 lines
/*
* IVIEWOBJ.H
*
* Definitions of a template IViewObject2 interface implementation.
*
* Copyright (c)1993-1995 Microsoft Corporation, All Right Reserved
*
* Kraig Brockschmidt, Microsoft
* Internet : kraigb@microsoft.com
* Compuserve: >INTERNET:kraigb@microsoft.com
*/
#ifndef _IVIEWOBJ_H_
#define _IVIEWOBJ_H_
#include <inole.h>
class CImpIViewObject;
typedef class CImpIViewObject *PCImpIViewObject;
class CImpIViewObject : public IViewObject
{
private:
ULONG m_cRef; //Interface reference count
LPVOID m_pObj; //Backpointer to the object
LPUNKNOWN m_pUnkOuter; //For delegation
public:
CImpIViewObject(LPVOID, LPUNKNOWN);
~CImpIViewObject(void);
//IUnknown members that delegate to m_pUnkOuter.
STDMETHODIMP QueryInterface(REFIID, LPVOID *);
STDMETHODIMP_(ULONG) AddRef(void);
STDMETHODIMP_(ULONG) Release(void);
//IViewObject members
STDMETHODIMP Draw(DWORD, LONG, LPVOID, DVTARGETDEVICE *
, HDC, HDC, LPCRECTL, LPCRECTL, BOOL (CALLBACK *)(DWORD)
, DWORD);
STDMETHODIMP GetColorSet(DWORD, LONG, LPVOID
, DVTARGETDEVICE *, HDC, LPLOGPALETTE *);
STDMETHODIMP Freeze(DWORD, LONG, LPVOID, LPDWORD);
STDMETHODIMP Unfreeze(DWORD);
STDMETHODIMP SetAdvise(DWORD, DWORD, LPADVISESINK);
STDMETHODIMP GetAdvise(LPDWORD, LPDWORD, LPADVISESINK *);
};
#endif //_IVIEWOBJ_H_