COM Automation Ole
CHtmlView IDispatch(invoke) IOleCommandTarget(EXEC)
IWebBrowser2::get_Document //Returns the active document.
LPDISPATCH CHtmlView::GetHtmlDocument( ) //得到的是文档指针,用来处理那些命令
IWebBrowser2::ExecWB
CHtmlView::ExecWB m_pBrowserApp->ExecWB
IHTMLDocument2::execCommand
CHtmlView::ExecWB是调用的 m_pBrowserApp->ExecWB(cmdID, cmdexecopt, pvaIn, pvaOut);
m_pBrowserApp是指向IWebBrowser2的智能指针
CComPtr<IWebBrowser2> m_pBrowserApp;
标准的IOleCommandTarget命令枚举值,不仅仅限于WB
MSHTML command identifiers 的命令标示号
Command Identifiers
IDM_1D_ELEMENT