📄 cowsite.cpp
字号:
#include "priv.h"
#include "cowsite.h"
// no default implementation for now.
// so far all clients do way more than this (e.g. deferred initialization)
// in their SetSite's.
HRESULT CObjectWithSite::SetSite(IUnknown * punkSite)
{
IUnknown_Set(&_punkSite, punkSite);
return S_OK;
}
HRESULT CObjectWithSite::GetSite(REFIID riid, void **ppvSite)
{
// e.g. iedisp.c!CIEFrameAutoProp::_SetValue calls us
TraceMsg(DM_WARNING, "cows.gs: E_NOTIMPL");
*ppvSite = NULL;
return E_NOTIMPL;
#if 0 // here 'tis if we ever decide we need it...
if (_punkSite)
return _punkSite->QueryInterface(riid, ppvSite);
*ppvSite = NULL;
return E_FAIL;
#endif
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -