Cleaning up failed experiments

This commit is contained in:
MusicalProgrammer
2020-03-07 18:32:54 -05:00
parent 94b787804d
commit bf0115f2ad
4 changed files with 2 additions and 53 deletions

View File

@@ -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;