diff --git a/SplashHTML.cpp b/SplashHTML.cpp index c022085..a152e08 100644 --- a/SplashHTML.cpp +++ b/SplashHTML.cpp @@ -8,7 +8,28 @@ #include int SplashHTMLLoad(std::string strHTML) +//void CreateHTMLContainer() { + HWND NewWindow = CreateWindowEx( + WS_EX_TOOLWINDOW, + "", + "", + WS_OVERLAPPEDWINDOW|WS_VISIBLE, + 0, + 0, + 500, + 300, + 0, + 0, + HINSTANCE(NULL), + NULL); + ShowWindow(NewWindow, 1); + UpdateWindow(NewWindow); + return 0; +} +int SplashHTMLLoadz(std::string strHTML) +{ + //CreateHTMLContainer(); printf("%s \n", strHTML.c_str()); CoInitialize(NULL); @@ -31,6 +52,9 @@ int SplashHTMLLoad(std::string strHTML) BSTR URL = SysAllocString(L"about:blank"); browser->put_AddressBar(false); browser->put_ToolBar(false); + browser->put_TheaterMode(false); + browser->put_Width(500); + browser->put_Height(300); browser->Navigate(URL, &empty, &empty, &empty, &empty); SysFreeString(URL); diff --git a/SplashHTML.h b/SplashHTML.h index b893696..0de1ce3 100644 --- a/SplashHTML.h +++ b/SplashHTML.h @@ -1,2 +1,2 @@ #include -int SplashHTMLLoad(std::string); \ No newline at end of file +int SplashHTMLLoad(std::string);