📄 shdocvw.tli
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (e2319c45).
//
// m:\vc-书籍-train\vc开发实用编程200例\第7部分 windows系统\第25章 win 32 api\扩展实例2 获取网页密码\debug\shdocvw.tli
//
// Wrapper implementations for Win32 type library shdocvw.dll
// compiler-generated file created 08/14/08 at 16:23:35 - DO NOT EDIT!
#pragma once
//
// interface IWebBrowser wrapper method implementations
//
inline HRESULT IWebBrowser::GoBack ( ) {
HRESULT _hr = raw_GoBack();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IWebBrowser::GoForward ( ) {
HRESULT _hr = raw_GoForward();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IWebBrowser::GoHome ( ) {
HRESULT _hr = raw_GoHome();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IWebBrowser::GoSearch ( ) {
HRESULT _hr = raw_GoSearch();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IWebBrowser::Navigate ( _bstr_t URL, VARIANT * Flags, VARIANT * TargetFrameName, VARIANT * PostData, VARIANT * Headers ) {
HRESULT _hr = raw_Navigate(URL, Flags, TargetFrameName, PostData, Headers);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IWebBrowser::Refresh ( ) {
HRESULT _hr = raw_Refresh();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IWebBrowser::Refresh2 ( VARIANT * Level ) {
HRESULT _hr = raw_Refresh2(Level);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IWebBrowser::Stop ( ) {
HRESULT _hr = raw_Stop();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline IDispatchPtr IWebBrowser::GetApplication ( ) {
IDispatch * _result;
HRESULT _hr = get_Application(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
inline IDispatchPtr IWebBrowser::GetParent ( ) {
IDispatch * _result;
HRESULT _hr = get_Parent(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
inline IDispatchPtr IWebBrowser::GetContainer ( ) {
IDispatch * _result;
HRESULT _hr = get_Container(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
inline IDispatchPtr IWebBrowser::GetDocument ( ) {
IDispatch * _result;
HRESULT _hr = get_Document(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
inline VARIANT_BOOL IWebBrowser::GetTopLevelContainer ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_TopLevelContainer(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t IWebBrowser::GetType ( ) {
BSTR _result;
HRESULT _hr = get_Type(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline long IWebBrowser::GetLeft ( ) {
long _result;
HRESULT _hr = get_Left(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IWebBrowser::PutLeft ( long pl ) {
HRESULT _hr = put_Left(pl);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IWebBrowser::GetTop ( ) {
long _result;
HRESULT _hr = get_Top(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IWebBrowser::PutTop ( long pl ) {
HRESULT _hr = put_Top(pl);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IWebBrowser::GetWidth ( ) {
long _result;
HRESULT _hr = get_Width(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IWebBrowser::PutWidth ( long pl ) {
HRESULT _hr = put_Width(pl);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IWebBrowser::GetHeight ( ) {
long _result;
HRESULT _hr = get_Height(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IWebBrowser::PutHeight ( long pl ) {
HRESULT _hr = put_Height(pl);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t IWebBrowser::GetLocationName ( ) {
BSTR _result;
HRESULT _hr = get_LocationName(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t IWebBrowser::GetLocationURL ( ) {
BSTR _result;
HRESULT _hr = get_LocationURL(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline VARIANT_BOOL IWebBrowser::GetBusy ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_Busy(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
//
// dispinterface DWebBrowserEvents wrapper method implementations
//
inline HRESULT DWebBrowserEvents::BeforeNavigate ( _bstr_t URL, long Flags, _bstr_t TargetFrameName, VARIANT * PostData, _bstr_t Headers, VARIANT_BOOL * Cancel ) {
return _com_dispatch_method(this, 0x64, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0008\x0003\x0008\x400c\x0008\x400b", (BSTR)URL, Flags, (BSTR)TargetFrameName, PostData, (BSTR)Headers, Cancel);
}
inline HRESULT DWebBrowserEvents::NavigateComplete ( _bstr_t URL ) {
return _com_dispatch_method(this, 0x65, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0008", (BSTR)URL);
}
inline HRESULT DWebBrowserEvents::StatusTextChange ( _bstr_t Text ) {
return _com_dispatch_method(this, 0x66, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0008", (BSTR)Text);
}
inline HRESULT DWebBrowserEvents::ProgressChange ( long Progress, long ProgressMax ) {
return _com_dispatch_method(this, 0x6c, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003\x0003", Progress, ProgressMax);
}
inline HRESULT DWebBrowserEvents::DownloadComplete ( ) {
return _com_dispatch_method(this, 0x68, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
inline HRESULT DWebBrowserEvents::CommandStateChange ( long Command, VARIANT_BOOL Enable ) {
return _com_dispatch_method(this, 0x69, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003\x000b", Command, Enable);
}
inline HRESULT DWebBrowserEvents::DownloadBegin ( ) {
return _com_dispatch_method(this, 0x6a, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
inline HRESULT DWebBrowserEvents::NewWindow ( _bstr_t URL, long Flags, _bstr_t TargetFrameName, VARIANT * PostData, _bstr_t Headers, VARIANT_BOOL * Processed ) {
return _com_dispatch_method(this, 0x6b, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0008\x0003\x0008\x400c\x0008\x400b", (BSTR)URL, Flags, (BSTR)TargetFrameName, PostData, (BSTR)Headers, Processed);
}
inline HRESULT DWebBrowserEvents::TitleChange ( _bstr_t Text ) {
return _com_dispatch_method(this, 0x71, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0008", (BSTR)Text);
}
inline HRESULT DWebBrowserEvents::FrameBeforeNavigate ( _bstr_t URL, long Flags, _bstr_t TargetFrameName, VARIANT * PostData, _bstr_t Headers, VARIANT_BOOL * Cancel ) {
return _com_dispatch_method(this, 0xc8, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0008\x0003\x0008\x400c\x0008\x400b", (BSTR)URL, Flags, (BSTR)TargetFrameName, PostData, (BSTR)Headers, Cancel);
}
inline HRESULT DWebBrowserEvents::FrameNavigateComplete ( _bstr_t URL ) {
return _com_dispatch_method(this, 0xc9, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0008", (BSTR)URL);
}
inline HRESULT DWebBrowserEvents::FrameNewWindow ( _bstr_t URL, long Flags, _bstr_t TargetFrameName, VARIANT * PostData, _bstr_t Headers, VARIANT_BOOL * Processed ) {
return _com_dispatch_method(this, 0xcc, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0008\x0003\x0008\x400c\x0008\x400b", (BSTR)URL, Flags, (BSTR)TargetFrameName, PostData, (BSTR)Headers, Processed);
}
inline HRESULT DWebBrowserEvents::Quit ( VARIANT_BOOL * Cancel ) {
return _com_dispatch_method(this, 0x67, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x400b", Cancel);
}
inline HRESULT DWebBrowserEvents::WindowMove ( ) {
return _com_dispatch_method(this, 0x6d, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
inline HRESULT DWebBrowserEvents::WindowResize ( ) {
return _com_dispatch_method(this, 0x6e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
inline HRESULT DWebBrowserEvents::WindowActivate ( ) {
return _com_dispatch_method(this, 0x6f, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
inline HRESULT DWebBrowserEvents::PropertyChange ( _bstr_t Property ) {
return _com_dispatch_method(this, 0x70, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0008", (BSTR)Property);
}
//
// interface IWebBrowserApp wrapper method implementations
//
inline HRESULT IWebBrowserApp::Quit ( ) {
HRESULT _hr = raw_Quit();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IWebBrowserApp::ClientToWindow ( int * pcx, int * pcy ) {
HRESULT _hr = raw_ClientToWindow(pcx, pcy);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IWebBrowserApp::PutProperty ( _bstr_t Property, const _variant_t & vtValue ) {
HRESULT _hr = raw_PutProperty(Property, vtValue);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _variant_t IWebBrowserApp::GetProperty ( _bstr_t Property ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = raw_GetProperty(Property, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline _bstr_t IWebBrowserApp::GetName ( ) {
BSTR _result;
HRESULT _hr = get_Name(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline long IWebBrowserApp::GetHWND ( ) {
long _result;
HRESULT _hr = get_HWND(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t IWebBrowserApp::GetFullName ( ) {
BSTR _result;
HRESULT _hr = get_FullName(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t IWebBrowserApp::GetPath ( ) {
BSTR _result;
HRESULT _hr = get_Path(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline VARIANT_BOOL IWebBrowserApp::GetVisible ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_Visible(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IWebBrowserApp::PutVisible ( VARIANT_BOOL pBool ) {
HRESULT _hr = put_Visible(pBool);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL IWebBrowserApp::GetStatusBar ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_StatusBar(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IWebBrowserApp::PutStatusBar ( VARIANT_BOOL pBool ) {
HRESULT _hr = put_StatusBar(pBool);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t IWebBrowserApp::GetStatusText ( ) {
BSTR _result;
HRESULT _hr = get_StatusText(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void IWebBrowserApp::PutStatusText ( _bstr_t StatusText ) {
HRESULT _hr = put_StatusText(StatusText);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline int IWebBrowserApp::GetToolBar ( ) {
int _result;
HRESULT _hr = get_ToolBar(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IWebBrowserApp::PutToolBar ( int Value ) {
HRESULT _hr = put_ToolBar(Value);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL IWebBrowserApp::GetMenuBar ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_MenuBar(&_result);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -