HTMLWindow.h revision dee9e52b1688c0617890cbbd8a8488f9f315d1b7
#ifndef HTMLWINDOW_H__
#define HTMLWINDOW_H__
#include <windows.h>
#include <exdisp.h>
#include <mshtml.h>
#include <mshtmhst.h>
#include <oaidl.h>
#include <string>
#include <map>
#include "DocHostUiHandler.h"
#include "OleInPlaceFrame.h"
#include "OleInPlaceSite.h"
// TODO
/*
Thanks to http://www.codeproject.com/com/cwebpage.asp for a great example
*/
extern bool todo_bool;
{
virtual void AppLink(std::string const&, std::string& out_html, const std::map<std::string,std::string>& param_map) = 0;
};
{
bool is_url);
virtual ~HTMLWindow();
void AddSink();
static bool ole_is_initialized_;
long EmbedBrowserObject();
{
return 1;
}
{
return 1;
}
void ClientToHostWindow(
long* CX,
long* CY
)
{
}
void CommandStateChange( long Command,
)
{
}
)
{
}
void DownloadBegin(VOID)
{
}
void DownloadComplete(VOID)
{
}
{
}
)
{
}
void NewWindow2(
)
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
::MessageBox(0, "OnVisible", 0, 0);
}
{
}
{
}
{
}
{
}
{
}
void SetSecureLockIcon(long SecureLockIcon)
{
}
{
}
{
}
{
}
void WindowSetHeight(long Height)
{
}
void WindowSetLeft(long Left)
{
}
{
}
void WindowSetTop(long Top)
{
}
void WindowSetWidth(long Width)
{
}
{
MUST_BE_IMPLEMENTED("GetTypeInfoCount")
*pctinfo = 0;
return S_OK;
}
unsigned int iTInfo,
)
{
MUST_BE_IMPLEMENTED("GetTypeInfo")
}
unsigned int cNames,
)
{
MUST_BE_IMPLEMENTED("GetIDsOfNames")
}
};
#endif