// **************************************************************************
// * IDocHostUIHandler2 methods
// **************************************************************************
ULONG FAR EXPORT CCustomControlSite::XDocHostUIHandler2::AddRef()
{
METHOD_PROLOGUE(CCustomControlSite, DocHostUIHandler2)
return pThis->ExternalAddRef();
}
ULONG FAR EXPORT CCustomControlSite::XDocHostUIHandler2::Release()
{
METHOD_PROLOGUE(CCustomControlSite, DocHostUIHandler2)
return pThis->ExternalRelease();
}
HRESULT FAR EXPORT CCustomControlSite::XDocHostUIHandler2::QueryInterface
(REFIID riid, void **ppvObj)
{
METHOD_PROLOGUE(CCustomControlSite, DocHostUIHandler2)
HRESULT hr = (HRESULT)pThis->ExternalQueryInterface(&riid, ppvObj);
return hr;
}
// CImpIDocHostUIHandler2::GetHostInfo
HRESULT FAR EXPORT CCustomControlSite::XDocHostUIHandler2::GetHostInfo
( DOCHOSTUIINFO* pInfo )
{
METHOD_PROLOGUE(CCustomControlSite, DocHostUIHandler2)
pInfo->dwFlags = DOCHOSTUIFLAG_NO3DBORDER;
pInfo->dwDoubleClick = DOCHOSTUIDBLCLK_DEFAULT;
return S_OK;
}
// CImpIDocHostUIHandler2::ShowUI
HRESULT FAR EXPORT CCustomControlSite::XDocHostUIHandler2::ShowUI(
DWORD dwID,
IOleInPlaceActiveObject * /*pActiveObject*/,
IOleCommandTarget * pCommandTarget,
IOleInPlaceFrame * /*pFrame*/,
IOleInPlaceUIWindow * /*pDoc*/)
{
METHOD_PROLOGUE(CCustomControlSite, DocHostUIHandler2)
return S_OK;
}
// CImpIDocHostUIHandler2::HideUI
HRESULT FAR EXPORT CCustomControlSite::XDocHostUIHandler2::HideUI(void)
{
METHOD_PROLOGUE(CCustomControlSite, DocHostUIHandler2)
return S_OK;
}
// CImpIDocHostUIHandler2::UpdateUI
HRESULT FAR EXPORT CCustomControlSite::XDocHostUIHandler2::UpdateUI(void)
{
METHOD_PROLOGUE(CCustomControlSite, DocHostUIHandler2)
return S_OK;
}
// CImpIDocHostUIHandler2::EnableModeless
HRESULT FAR EXPORT CCustomControlSite::XDocHostUIHandler2::EnableModeless
(BOOL /*fEnable*/)
{
METHOD_PROLOGUE(CCustomControlSite, DocHostUIHandler2)
return E_NOTIMPL;
}
// CImpIDocHostUIHandler2::OnDocWindowActivate
HRESULT FAR EXPORT CCustomControlSite::XDocHostUIHandler2::OnDocWindowActivate
(BOOL /*fActivate*/)
{
METHOD_PROLOGUE(CCustomControlSite, DocHostUIHandler2)
return E_NOTIMPL;
}
// CImpIDocHostUIHandler2::OnFrameWindowActivate
HRESULT FAR EXPORT CCustomControlSite::XDocHostUIHandler2::OnFrameWindowActivate
(BOOL /*fActivate*/)
{
METHOD_PROLOGUE(CCustomControlSite, DocHostUIHandler2)
return E_NOTIMPL;
}
// CImpIDocHostUIHandler2::ResizeBorder
HRESULT FAR EXPORT CCustomControlSite::XDocHostUIHandler2::ResizeBorder(
LPCRECT /*prcBorder*/,
IOleInPlaceUIWindow* /*pUIWindow*/,
BOOL /*fRameWindow*/)
{
METHOD_PROLOGUE(CCustomControlSite, DocHostUIHandler2)
return E_NOTIMPL;
}
// CImpIDocHostUIHandler2::ShowContextMenu
HRESULT FAR EXPORT CCustomControlSite::XDocHostUIHandler2::ShowContextMenu(
DWORD /*dwID*/,
POINT* /*pptPosition*/,
IUnknown* /*pCommandTarget*/,
IDispatch* /*pDispatchObjectHit*/)
{
METHOD_PROLOGUE(CCustomControlSite, DocHostUIHandler2)
return S_FALSE;
}
// CImpIDocHostUIHandler2::TranslateAccelerator
HRESULT FAR EXPORT CCustomControlSite::XDocHostUIHandler2::TranslateAccelerator(LPMSG lpMsg,
/* [in] */ const GUID __RPC_FAR *pguidCmdGroup,
/* [in] */ DWORD nCmdID)
{
METHOD_PROLOGUE(CCustomControlSite, DocHostUIHandler2)
return S_FALSE;
}
// CImpIDocHostUIHandler2::GetOptionKeyPath
HRESULT FAR EXPORT CCustomControlSite::XDocHostUIHandler2::GetOptionKeyPath
(BSTR* pbstrKey, DWORD)
{
METHOD_PROLOGUE(CCustomControlSite, DocHostUIHandler2)
return E_NOTIMPL;
}
STDMETHODIMP CCustomControlSite::XDocHostUIHandler2::GetDropTarget(
/* [in] */ IDropTarget __RPC_FAR *pDropTarget,
/* [out] */ IDropTarget __RPC_FAR *__RPC_FAR *ppDropTarget)
{
METHOD_PROLOGUE(CCustomControlSite, DocHostUIHandler2)
return E_NOTIMPL;
}
STDMETHODIMP CCustomControlSite::XDocHostUIHandler2::GetExternal(
/* [out] */ IDispatch __RPC_FAR *__RPC_FAR *ppDispatch)
{
// Return the IDispatch that you have to extend the object model.
IDispatch* pDisp = (IDispatch*)theApp.m_pDispOM;<BR/>
pDisp->AddRef();
*ppDispatch = pDisp;
return S_OK;
}
STDMETHODIMP CCustomControlSite::XDocHostUIHandler2::TranslateUrl(
/* [in] */ DWORD dwTranslate,
/* [in] */ OLECHAR __RPC_FAR *pchURLIn,
/* [out] */ OLECHAR __RPC_FAR *__RPC_FAR *ppchURLOut)
{
METHOD_PROLOGUE(CCustomControlSite, DocHostUIHandler2)
return E_NOTIMPL;
}
STDMETHODIMP CCustomControlSite::XDocHostUIHandler2::FilterDataObject(
/* [in] */ IDataObject __RPC_FAR *pDO,
/* [out] */ IDataObject __RPC_FAR *__RPC_FAR *ppDORet)
{
METHOD_PROLOGUE(CCustomControlSite, DocHostUIHandler2)
return E_NOTIMPL;
}
STDMETHODIMP CCustomControlSite::XDocHostUIHandler2::GetOverrideKeyPath(
LPOLESTR *pchKey, DWORD dw)
{
/*
* This is not called due to the bug.
*/
METHOD_PROLOGUE(CCustomControlSite, DocHostUIHandler2)
return E_NOTIMPL;
}