我想设置 Flag很快将作为参数传递navOpenInBackgroundTab
给BrowserNavConstants enum
IWebBrowser2::Navigate2
Method。
签名IWebBrowser2::Navigate2
:-
HRESULT Navigate2(
VARIANT *URL,
VARIANT *Flags,
VARIANT *TargetFrameName,
VARIANT *PostData,
VARIANT *Headers
);
这是我有问题的地方: -
VARIANT SITE={0}, vFlags = {0},vTargetFrameName = {0},vPostData = {0},vHeaders = {0};
...
...
vFlags.intVal=navOpenInBackgroundTab;//<--Here,Don't know how to do it.Not Working..
m_spWebBrowser->Navigate2(&SITE, &vFlags,&vTargetFrameName, &vPostData, &vHeaders);
非常感谢您的支持。