#include <fsShellBrowsersEvents.h>
Public Member Functions | |
| fsShellBrowsersEvents () | |
| virtual | ~fsShellBrowsersEvents () |
| IWebBrowser2 * | get_WB () |
| BOOL | is_Attached () |
| HRESULT | Attach (SHDocVw::IShellWindowsPtr &spSHWnds) |
| void | Detach () |
| void | SetEventFunc (fntSHBrowserEvent pfn, LPVOID lpParam) |
Protected Member Functions | |
| void | OnNavigateComplete2 (LPDISPATCH pDisp, VARIANT *URL) |
| void | OnDocumentComplete (LPDISPATCH pDisp, VARIANT *URL) |
| void | OnDownloadComplete () |
| void | OnDownloadBegin () |
| void | OnBeforeNavigate (LPDISPATCH, VARIANT *, VARIANT *, VARIANT *, VARIANT *, VARIANT *, BOOL *) |
| BOOL | Event (fsSHBrowserEvent ev, DWORD dwInfo=0) |
| HRESULT | Attach (SHDocVw::IWebBrowser2Ptr &spBrowser) |
Protected Attributes | |
| bool | m_bDetaching |
| LPDISPATCH | m_pWBRoot |
| fntSHBrowserEvent | m_pfnEvents |
| LPVOID | m_lpEventsParam |
| IWebBrowser2Ptr | m_spWB |
| IConnectionPointPtr | m_spConnPt |
| DWORD | m_dwCookie |
| fs::list< fsShellBrowsersEvents * > | m_vBrowsers |
Definition at line 22 of file fsShellBrowsersEvents.h.
| fsShellBrowsersEvents::fsShellBrowsersEvents | ( | ) |
| fsShellBrowsersEvents::~fsShellBrowsersEvents | ( | ) | [virtual] |
| IWebBrowser2 * fsShellBrowsersEvents::get_WB | ( | ) |
| BOOL fsShellBrowsersEvents::is_Attached | ( | ) |
Definition at line 182 of file fsShellBrowsersEvents.cpp.
References m_spConnPt, m_vBrowsers, and NULL.
| HRESULT fsShellBrowsersEvents::Attach | ( | SHDocVw::IShellWindowsPtr & | spSHWnds | ) |
Definition at line 45 of file fsShellBrowsersEvents.cpp.
References Attach(), Detach(), FAILED, hr, HRESULT, is_Attached(), LONG, m_bDetaching, m_lpEventsParam, m_pfnEvents, m_vBrowsers, NULL, S_FALSE, S_OK, SetEventFunc(), and VT_I4.
Referenced by Attach().
| void fsShellBrowsersEvents::Detach | ( | ) |
Definition at line 113 of file fsShellBrowsersEvents.cpp.
References m_bDetaching, m_dwCookie, m_spConnPt, m_vBrowsers, NULL, and SetEventFunc().
Referenced by Attach(), and ~fsShellBrowsersEvents().
| void fsShellBrowsersEvents::SetEventFunc | ( | fntSHBrowserEvent | pfn, | |
| LPVOID | lpParam | |||
| ) |
Definition at line 162 of file fsShellBrowsersEvents.cpp.
References m_lpEventsParam, m_pfnEvents, and m_vBrowsers.
| void fsShellBrowsersEvents::OnNavigateComplete2 | ( | LPDISPATCH | pDisp, | |
| VARIANT * | URL | |||
| ) | [protected] |
| void fsShellBrowsersEvents::OnDocumentComplete | ( | LPDISPATCH | pDisp, | |
| VARIANT * | URL | |||
| ) | [protected] |
Definition at line 192 of file fsShellBrowsersEvents.cpp.
References Event(), m_pWBRoot, NULL, and SBE_DOCUMENTCOMPLETE.
| void fsShellBrowsersEvents::OnDownloadComplete | ( | ) | [protected] |
| void fsShellBrowsersEvents::OnDownloadBegin | ( | ) | [protected] |
| void fsShellBrowsersEvents::OnBeforeNavigate | ( | LPDISPATCH | , | |
| VARIANT * | vtUrl, | |||
| VARIANT * | , | |||
| VARIANT * | , | |||
| VARIANT * | , | |||
| VARIANT * | , | |||
| BOOL * | pbCancel | |||
| ) | [protected] |
Definition at line 146 of file fsShellBrowsersEvents.cpp.
References tagPROPVARIANT::bstrVal, Event(), FALSE, and SBE_BEFORENAVIGATE.
| BOOL fsShellBrowsersEvents::Event | ( | fsSHBrowserEvent | ev, | |
| DWORD | dwInfo = 0 | |||
| ) | [protected] |
Definition at line 171 of file fsShellBrowsersEvents.cpp.
References FALSE, is_Attached(), m_bDetaching, m_lpEventsParam, m_pfnEvents, and TRUE.
Referenced by OnBeforeNavigate(), OnDocumentComplete(), OnDownloadBegin(), and OnDownloadComplete().
| HRESULT fsShellBrowsersEvents::Attach | ( | SHDocVw::IWebBrowser2Ptr & | spBrowser | ) | [protected] |
Definition at line 89 of file fsShellBrowsersEvents.cpp.
References FAILED, FALSE, hr, HRESULT, LPVOID, m_bDetaching, m_dwCookie, m_spConnPt, m_spWB, and S_FALSE.
bool fsShellBrowsersEvents::m_bDetaching [protected] |
Definition at line 45 of file fsShellBrowsersEvents.h.
LPDISPATCH fsShellBrowsersEvents::m_pWBRoot [protected] |
Definition at line 46 of file fsShellBrowsersEvents.h.
Referenced by OnDocumentComplete(), and OnNavigateComplete2().
fntSHBrowserEvent fsShellBrowsersEvents::m_pfnEvents [protected] |
Definition at line 54 of file fsShellBrowsersEvents.h.
Referenced by Attach(), Event(), and SetEventFunc().
LPVOID fsShellBrowsersEvents::m_lpEventsParam [protected] |
Definition at line 55 of file fsShellBrowsersEvents.h.
Referenced by Attach(), Event(), and SetEventFunc().
IWebBrowser2Ptr fsShellBrowsersEvents::m_spWB [protected] |
IConnectionPointPtr fsShellBrowsersEvents::m_spConnPt [protected] |
Definition at line 62 of file fsShellBrowsersEvents.h.
Referenced by Attach(), Detach(), and is_Attached().
DWORD fsShellBrowsersEvents::m_dwCookie [protected] |
fs::list<fsShellBrowsersEvents*> fsShellBrowsersEvents::m_vBrowsers [protected] |
Definition at line 65 of file fsShellBrowsersEvents.h.
Referenced by Attach(), Detach(), is_Attached(), and SetEventFunc().
1.5.6