mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
476 B
22 lines
476 B
#ifndef _COWSITE_H_
|
|
#define _COWSITE_H_
|
|
|
|
// this is a virtual class
|
|
// (since pretty much everyone overrides SetSite)
|
|
|
|
class CObjectWithSite : public IObjectWithSite
|
|
{
|
|
public:
|
|
//*** IUnknown ****
|
|
// (client must provide!)
|
|
|
|
//*** IObjectWithSite ***
|
|
virtual STDMETHODIMP SetSite(IUnknown *punkSite);
|
|
virtual STDMETHODIMP GetSite(REFIID riid, void **ppvSite);
|
|
|
|
~CObjectWithSite() { ASSERT(!_punkSite); }
|
|
protected:
|
|
IUnknown * _punkSite;
|
|
};
|
|
|
|
#endif
|