void HTMLIFrameElement::goForward()
{
#if 0
	if (m_pHBC)
	{
		CComPtr<IHlink> pHlink;
		m_pHBC->GetHlink(HLID_NEXT, &pHlink);
		if (pHlink)
		{
			CComPtr<IBindCtx> bctx;
			CreateBindCtx(0, &bctx);
			ErrorCode hr = HlinkNavigate(pHlink, m_view, HLNF_NAVIGATINGFORWARD, bctx, NULL, m_pHBC);
		}
//		ErrorCode hr = ::HlinkGoForward(m_spUnknown);
	}
#endif
}
void HTMLIFrameElement::goBack()
{
	ASSERT(0);
#if 0
	if (m_pFrameContent)
	{
		CComPtr<IHlink> pHlink;
		m_pFrameContent->m_hlinkBrowseContext->GetHlink(HLID_PREVIOUS, &pHlink);
		if (pHlink)
		{
		//	CComPtr<IBindCtx> bctx;
		//	CreateBindCtx(0, &bctx);
			ErrorCode hr = HlinkNavigate(pHlink, static_cast<IHlinkFrame*>(m_pFrameContent/*->m_pViewSite*/), HLNF_NAVIGATINGBACK, NULL/*bctx*/, NULL, m_pFrameContent->m_hlinkBrowseContext);
		}
		//ErrorCode hr = ::HlinkGoBack(m_spUnknown);
	}
#endif
}
Exemple #3
0
/***********************************************************************
 *             HlinkNavigateToStringReference (HLINK.@)
 */
HRESULT WINAPI HlinkNavigateToStringReference( LPCWSTR pwzTarget,
        LPCWSTR pwzLocation, IHlinkSite *pihlsite, DWORD dwSiteData,
        IHlinkFrame *pihlframe, DWORD grfHLNF, LPBC pibc,
        IBindStatusCallback *pibsc, IHlinkBrowseContext *pihlbc)
{
    HRESULT r;
    IHlink *hlink = NULL;

    FIXME("%s %s %p %08x %p %08x %p %p %p\n",
          debugstr_w(pwzTarget), debugstr_w(pwzLocation), pihlsite,
          dwSiteData, pihlframe, grfHLNF, pibc, pibsc, pihlbc);

    r = HlinkCreateFromString( pwzTarget, pwzLocation, NULL, pihlsite,
                               dwSiteData, NULL, &IID_IHlink, (LPVOID*) &hlink );
    if (SUCCEEDED(r))
        r = HlinkNavigate(hlink, pihlframe, grfHLNF, pibc, pibsc, pihlbc);

    return r;
}