Added web browser variable

This commit is contained in:
andreja6
2018-07-06 11:48:25 -07:00
parent 838f69944e
commit a47268830b
2 changed files with 10 additions and 1 deletions

View File

@@ -21,6 +21,7 @@
ConfigurationType="1" ConfigurationType="1"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
UseOfMFC="0" UseOfMFC="0"
UseOfATL="2"
ATLMinimizesCRunTimeLibraryUsage="false" ATLMinimizesCRunTimeLibraryUsage="false"
CharacterSet="2" CharacterSet="2"
> >
@@ -73,6 +74,7 @@
/> />
<Tool <Tool
Name="VCLinkerTool" Name="VCLinkerTool"
AdditionalDependencies="atl.lib"
OutputFile="./G3DTest.exe" OutputFile="./G3DTest.exe"
LinkIncremental="1" LinkIncremental="1"
SuppressStartupBanner="true" SuppressStartupBanner="true"

View File

@@ -30,6 +30,10 @@
#include "win32Defines.h" #include "win32Defines.h"
#include "WindowFunctions.h" #include "WindowFunctions.h"
#include <limits.h> #include <limits.h>
#include <mshtml.h>
#include <exdisp.h>
#include <vector>
#include <string>
@@ -38,6 +42,7 @@
#endif #endif
HWND hwnd; HWND hwnd;
IWebBrowser2* test;
static std::string title = ""; static std::string title = "";
static DataModelInstance* dataModel; static DataModelInstance* dataModel;
GFontRef fntdominant = NULL; GFontRef fntdominant = NULL;
@@ -66,6 +71,8 @@ static const std::string PlaceholderName = "Dynamica";
Demo *usableApp = NULL; Demo *usableApp = NULL;
Demo::Demo(const GAppSettings& settings,HWND parentWindow) { //: GApp(settings,window) { Demo::Demo(const GAppSettings& settings,HWND parentWindow) { //: GApp(settings,window) {
_hWndMain = parentWindow; _hWndMain = parentWindow;
@@ -838,7 +845,7 @@ bool IsHolding(int button)
return (GetKeyState(button) >> 1)>0; return (GetKeyState(button) >> 1)>0;
} }
bool GetKPBool(int VK) { BOOL GetKPBool(int VK) {
return (GetKeyState(VK) & 0x8000); return (GetKeyState(VK) & 0x8000);
} }