📄 shdocvw.tli
字号:
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IWebBrowserApp::PutMenuBar ( VARIANT_BOOL Value ) {
HRESULT _hr = put_MenuBar(Value);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL IWebBrowserApp::GetFullScreen ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_FullScreen(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IWebBrowserApp::PutFullScreen ( VARIANT_BOOL pbFullScreen ) {
HRESULT _hr = put_FullScreen(pbFullScreen);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface IWebBrowser2 wrapper method implementations
//
inline HRESULT IWebBrowser2::Navigate2 ( VARIANT * URL, VARIANT * Flags, VARIANT * TargetFrameName, VARIANT * PostData, VARIANT * Headers ) {
HRESULT _hr = raw_Navigate2(URL, Flags, TargetFrameName, PostData, Headers);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline enum OLECMDF IWebBrowser2::QueryStatusWB ( enum OLECMDID cmdID ) {
enum OLECMDF _result;
HRESULT _hr = raw_QueryStatusWB(cmdID, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT IWebBrowser2::ExecWB ( enum OLECMDID cmdID, enum OLECMDEXECOPT cmdexecopt, VARIANT * pvaIn, VARIANT * pvaOut ) {
HRESULT _hr = raw_ExecWB(cmdID, cmdexecopt, pvaIn, pvaOut);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IWebBrowser2::ShowBrowserBar ( VARIANT * pvaClsid, VARIANT * pvarShow, VARIANT * pvarSize ) {
HRESULT _hr = raw_ShowBrowserBar(pvaClsid, pvarShow, pvarSize);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline enum tagREADYSTATE IWebBrowser2::GetReadyState ( ) {
enum tagREADYSTATE _result;
HRESULT _hr = get_ReadyState(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline VARIANT_BOOL IWebBrowser2::GetOffline ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_Offline(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IWebBrowser2::PutOffline ( VARIANT_BOOL pbOffline ) {
HRESULT _hr = put_Offline(pbOffline);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL IWebBrowser2::GetSilent ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_Silent(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IWebBrowser2::PutSilent ( VARIANT_BOOL pbSilent ) {
HRESULT _hr = put_Silent(pbSilent);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL IWebBrowser2::GetRegisterAsBrowser ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_RegisterAsBrowser(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IWebBrowser2::PutRegisterAsBrowser ( VARIANT_BOOL pbRegister ) {
HRESULT _hr = put_RegisterAsBrowser(pbRegister);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL IWebBrowser2::GetRegisterAsDropTarget ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_RegisterAsDropTarget(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IWebBrowser2::PutRegisterAsDropTarget ( VARIANT_BOOL pbRegister ) {
HRESULT _hr = put_RegisterAsDropTarget(pbRegister);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL IWebBrowser2::GetTheaterMode ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_TheaterMode(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IWebBrowser2::PutTheaterMode ( VARIANT_BOOL pbRegister ) {
HRESULT _hr = put_TheaterMode(pbRegister);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL IWebBrowser2::GetAddressBar ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_AddressBar(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IWebBrowser2::PutAddressBar ( VARIANT_BOOL Value ) {
HRESULT _hr = put_AddressBar(Value);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL IWebBrowser2::GetResizable ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_Resizable(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IWebBrowser2::PutResizable ( VARIANT_BOOL Value ) {
HRESULT _hr = put_Resizable(Value);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// dispinterface DWebBrowserEvents2 wrapper method implementations
//
inline HRESULT DWebBrowserEvents2::StatusTextChange ( _bstr_t Text ) {
return _com_dispatch_method(this, 0x66, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0008", (BSTR)Text);
}
inline HRESULT DWebBrowserEvents2::ProgressChange ( long Progress, long ProgressMax ) {
return _com_dispatch_method(this, 0x6c, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003\x0003", Progress, ProgressMax);
}
inline HRESULT DWebBrowserEvents2::CommandStateChange ( long Command, VARIANT_BOOL Enable ) {
return _com_dispatch_method(this, 0x69, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003\x000b", Command, Enable);
}
inline HRESULT DWebBrowserEvents2::DownloadBegin ( ) {
return _com_dispatch_method(this, 0x6a, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
inline HRESULT DWebBrowserEvents2::DownloadComplete ( ) {
return _com_dispatch_method(this, 0x68, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
inline HRESULT DWebBrowserEvents2::TitleChange ( _bstr_t Text ) {
return _com_dispatch_method(this, 0x71, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0008", (BSTR)Text);
}
inline HRESULT DWebBrowserEvents2::PropertyChange ( _bstr_t szProperty ) {
return _com_dispatch_method(this, 0x70, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0008", (BSTR)szProperty);
}
inline HRESULT DWebBrowserEvents2::BeforeNavigate2 ( IDispatch * pDisp, VARIANT * URL, VARIANT * Flags, VARIANT * TargetFrameName, VARIANT * PostData, VARIANT * Headers, VARIANT_BOOL * Cancel ) {
return _com_dispatch_method(this, 0xfa, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009\x400c\x400c\x400c\x400c\x400c\x400b", pDisp, URL, Flags, TargetFrameName, PostData, Headers, Cancel);
}
inline HRESULT DWebBrowserEvents2::NewWindow2 ( IDispatch * * ppDisp, VARIANT_BOOL * Cancel ) {
return _com_dispatch_method(this, 0xfb, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x4009\x400b", ppDisp, Cancel);
}
inline HRESULT DWebBrowserEvents2::NavigateComplete2 ( IDispatch * pDisp, VARIANT * URL ) {
return _com_dispatch_method(this, 0xfc, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009\x400c", pDisp, URL);
}
inline HRESULT DWebBrowserEvents2::DocumentComplete ( IDispatch * pDisp, VARIANT * URL ) {
return _com_dispatch_method(this, 0x103, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009\x400c", pDisp, URL);
}
inline HRESULT DWebBrowserEvents2::OnQuit ( ) {
return _com_dispatch_method(this, 0xfd, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
inline HRESULT DWebBrowserEvents2::OnVisible ( VARIANT_BOOL Visible ) {
return _com_dispatch_method(this, 0xfe, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x000b", Visible);
}
inline HRESULT DWebBrowserEvents2::OnToolBar ( VARIANT_BOOL ToolBar ) {
return _com_dispatch_method(this, 0xff, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x000b", ToolBar);
}
inline HRESULT DWebBrowserEvents2::OnMenuBar ( VARIANT_BOOL MenuBar ) {
return _com_dispatch_method(this, 0x100, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x000b", MenuBar);
}
inline HRESULT DWebBrowserEvents2::OnStatusBar ( VARIANT_BOOL StatusBar ) {
return _com_dispatch_method(this, 0x101, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x000b", StatusBar);
}
inline HRESULT DWebBrowserEvents2::OnFullScreen ( VARIANT_BOOL FullScreen ) {
return _com_dispatch_method(this, 0x102, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x000b", FullScreen);
}
inline HRESULT DWebBrowserEvents2::OnTheaterMode ( VARIANT_BOOL TheaterMode ) {
return _com_dispatch_method(this, 0x104, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x000b", TheaterMode);
}
inline HRESULT DWebBrowserEvents2::WindowSetResizable ( VARIANT_BOOL Resizable ) {
return _com_dispatch_method(this, 0x106, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x000b", Resizable);
}
inline HRESULT DWebBrowserEvents2::WindowSetLeft ( long Left ) {
return _com_dispatch_method(this, 0x108, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003", Left);
}
inline HRESULT DWebBrowserEvents2::WindowSetTop ( long Top ) {
return _com_dispatch_method(this, 0x109, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003", Top);
}
inline HRESULT DWebBrowserEvents2::WindowSetWidth ( long Width ) {
return _com_dispatch_method(this, 0x10a, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003", Width);
}
inline HRESULT DWebBrowserEvents2::WindowSetHeight ( long Height ) {
return _com_dispatch_method(this, 0x10b, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003", Height);
}
inline HRESULT DWebBrowserEvents2::WindowClosing ( VARIANT_BOOL IsChildWindow, VARIANT_BOOL * Cancel ) {
return _com_dispatch_method(this, 0x107, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x000b\x400b", IsChildWindow, Cancel);
}
inline HRESULT DWebBrowserEvents2::ClientToHostWindow ( long * CX, long * CY ) {
return _com_dispatch_method(this, 0x10c, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x4003\x4003", CX, CY);
}
inline HRESULT DWebBrowserEvents2::SetSecureLockIcon ( long SecureLockIcon ) {
return _com_dispatch_method(this, 0x10d, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003", SecureLockIcon);
}
inline HRESULT DWebBrowserEvents2::FileDownload ( VARIANT_BOOL * Cancel ) {
return _com_dispatch_method(this, 0x10e, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x400b", Cancel);
}
inline HRESULT DWebBrowserEvents2::NavigateError ( IDispatch * pDisp, VARIANT * URL, VARIANT * Frame, VARIANT * StatusCode, VARIANT_BOOL * Cancel ) {
return _com_dispatch_method(this, 0x10f, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009\x400c\x400c\x400c\x400b", pDisp, URL, Frame, StatusCode, Cancel);
}
inline HRESULT DWebBrowserEvents2::PrintTemplateInstantiation ( IDispatch * pDisp ) {
return _com_dispatch_method(this, 0xe1, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009", pDisp);
}
inline HRESULT DWebBrowserEvents2::PrintTemplateTeardown ( IDispatch * pDisp ) {
return _com_dispatch_method(this, 0xe2, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009", pDisp);
}
inline HRESULT DWebBrowserEvents2::UpdatePageStatus ( IDispatch * pDisp, VARIANT * nPage, VARIANT * fDone ) {
return _com_dispatch_method(this, 0xe3, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009\x400c\x400c", pDisp, nPage, fDone);
}
inline HRESULT DWebBrowserEvents2::PrivacyImpactedStateChange ( VARIANT_BOOL bImpacted ) {
return _com_dispatch_method(this, 0x110, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x000b", bImpacted);
}
inline HRESULT DWebBrowserEvents2::NewWindow3 ( IDispatch * * ppDisp, VARIANT_BOOL * Cancel, unsigned long dwFlags, _bstr_t bstrUrlContext, _bstr_t bstrUrl ) {
return _com_dispatch_method(this, 0x111, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x4009\x400b\x0003\x0008\x0008", ppDisp, Cancel, dwFlags, (BSTR)bstrUrlContext, (BSTR)bstrUrl);
}
//
// dispinterface DShellWindowsEvents wrapper method implementations
//
inline HRESULT DShellWindowsEvents::WindowRegistered ( long lCookie ) {
return _com_dispatch_method(this, 0xc8, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003", lCookie);
}
inline HRESULT DShellWindowsEvents::WindowRevoked ( long lCookie ) {
return _com_dispatch_method(this, 0xc9, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003", lCookie);
}
//
// interface IShellWindows wrapper method implementations
//
inline long IShellWindows::GetCount ( ) {
long _result;
HRESULT _hr = get_Count(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline IDispatchPtr IShellWindows::Item ( const _variant_t & index ) {
IDispatch * _result;
HRESULT _hr = raw_Item(index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
inline IUnknownPtr IShellWindows::_NewEnum ( ) {
IUnknown * _result;
HRESULT _hr = raw__NewEnum(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
inline HRESULT IShellWindows::Register ( IDispatch * pid, long HWND, int swClass, long * plCookie ) {
HRESULT _hr = raw_Register(pid, HWND, swClass, plCookie);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellWindows::RegisterPending ( long lThreadId, VARIANT * pvarloc, VARIANT * pvarlocRoot, int swClass, long * plCookie ) {
HRESULT _hr = raw_RegisterPending(lThreadId, pvarloc, pvarlocRoot, swClass, plCookie);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellWindows::Revoke ( long lCookie ) {
HRESULT _hr = raw_Revoke(lCookie);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellWindows::OnNavigate ( long lCookie, VARIANT * pvarloc ) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -