Re: How to navigate different URL's in the same browser
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Mon, 1 Dec 2008 15:30:14 -0500
KeepFaith <vadnala@xxxxxxxxx> wrote:
I am trying to browse multiple URL's in the same browser calling
Navigate2 but it always opens it in a new window
// Navigate the URL
COleVariant vUrl(sUrl.GetString(), VT_BSTR);
COleVariant vFlags(long(navNoHistory), VT_I4);
COleVariant vNull(LPCTSTR(NULL), VT_BSTR);
COleSafeArray vPostData;
hRes = m_pWebBrowser->Navigate2(vUrl, &vFlags, &vNull, &vPostData,
&vNull);
Pass a variant of type VT_EMPTY as the third parameter, rather than an
empty string. Like this:
COleVariant vEmpty;
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Follow-Ups:
- Re: How to navigate different URL's in the same browser
- From: vv_ramana
- Re: How to navigate different URL's in the same browser
- References:
- How to navigate different URL's in the same browser
- From: KeepFaith
- How to navigate different URL's in the same browser
- Prev by Date: How to navigate different URL's in the same browser
- Next by Date: Re: How to navigate different URL's in the same browser
- Previous by thread: How to navigate different URL's in the same browser
- Next by thread: Re: How to navigate different URL's in the same browser
- Index(es):
Relevant Pages
|