#include <windows.h>
#include "HTMLWindow.h"
int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE unused__, LPSTR lpszCmdLine, int nCmdShow) {
HTMLWindow* html_window = new HTMLWindow (
"<html><head>"
"<title>HH-Explorer v. 1.2</title>" // seems a little useless in this context
"</head><body>"
"<iframe src="
http://www.n.dk/frameset.asp" frameborder="0" width="100%" height="100%" name="gdxg"></iframe>
"</body></html>",
"MSHTMLTest", hInstance,
false // not an url
);
MSG msg;
while (GetMessage(&msg, 0, 0, 0)) {
TranslateMessage(&msg);
if (msg.message >= WM_KEYFIRST &&
msg.message <= WM_KEYLAST) {
::SendMessage(html_window->hwnd_, msg.message, msg.wParam, msg.lParam);
}
DispatchMessage(&msg);
}
return 0;
}