Cleaning up failed experiments
This commit is contained in:
@@ -9,10 +9,9 @@
|
||||
#include "Globals.h"
|
||||
#include "ax.h"
|
||||
|
||||
//#include "IEDispatcher.h"
|
||||
|
||||
void IEBrowser::Boop(char* test)
|
||||
{
|
||||
// External functions may end up here in the future
|
||||
}
|
||||
|
||||
IEBrowser::IEBrowser(HWND attachHWnd) {
|
||||
@@ -26,7 +25,6 @@ IEBrowser::IEBrowser(HWND attachHWnd) {
|
||||
}
|
||||
}
|
||||
hwnd = attachHWnd;
|
||||
spDocument = 0;
|
||||
webBrowser = 0;
|
||||
SendMessage(hwnd,AX_INPLACE,1,0);
|
||||
SendMessage(hwnd,AX_QUERYINTERFACE,(WPARAM)&IID_IWebBrowser2,(LPARAM)&webBrowser);
|
||||
@@ -39,23 +37,6 @@ IEBrowser::~IEBrowser(void) {
|
||||
}
|
||||
}
|
||||
|
||||
// Something goes here
|
||||
int IEBrowser::setExternal(IDispatch** ext)
|
||||
{
|
||||
std::cout << &m_IEDispatcher;
|
||||
IInternetHostSecurityManager* spSecMan;
|
||||
spDocument2->QueryInterface(IID_IInternetHostSecurityManager,
|
||||
(void **) &spSecMan);
|
||||
|
||||
// TODO: hr needs to say: 'S_OK'
|
||||
//spSecMan->QueryCustomPolicy
|
||||
HRESULT hr = spSecMan->ProcessUrlAction(URLACTION_ACTIVEX_OVERRIDE_OBJECT_SAFETY,
|
||||
NULL, 0, NULL, 0, 0, PUAF_WARN_IF_DENIED);
|
||||
|
||||
(*ext) = &m_IEDispatcher;
|
||||
return 1;
|
||||
}
|
||||
|
||||
bool IEBrowser::navigateSyncURL(wchar_t* url)
|
||||
{
|
||||
MSG messages;
|
||||
|
||||
Reference in New Issue
Block a user