Article ID: 175513
Article Last Modified on 8/11/2004
119591 How to Obtain Microsoft Support Files from Online Services
DEFINE_GUID(CGID_IWebBrowser,0xED016940L,0xBD5B,0x11cf,0xBA,
0x4E,0x00,0xC0,0x4F,0xD7,0x08,0x16);
#define HTMLID_FIND 1
#define HTMLID_VIEWSOURCE 2
#define HTMLID_OPTIONS 3
HRESULT CMainFrame::ExecCmdTarget(DWORD nCmdID)
{
LPDISPATCH lpDispatch = NULL;
LPOLECOMMANDTARGET lpOleCommandTarget = NULL;
lpDispatch =
((CWebSurferView*)GetActiveView())->m_webBrowser.GetDocument();
ASSERT(lpDispatch);
// Get an IDispatch pointer for the IOleCommandTarget interface.
lpDispatch->QueryInterface(IID_IOleCommandTarget,
(void**)&lpOleCommandTarget);
ASSERT(lpOleCommandTarget);
lpDispatch->Release();
// Invoke the given command id for the WebBrowser control
return lpOleCommandTarget->Exec(&CGID_IWebBrowser, nCmdID, 0,
NULL, NULL);
}
Additional query words: WebBrowser WBSample Find Source Options Internet Explorer IE
Keywords: kbinfo kbdownload kbwebbrowser kbfile kbsample kbfaq KB175513