Removed navigate for now, made char work

This commit is contained in:
andreja6
2018-10-23 14:11:28 -07:00
parent 1472b7d6a5
commit 5114ceb4b7
2 changed files with 8 additions and 4 deletions

View File

@@ -221,7 +221,7 @@ void PhysicalInstance::PropUpdate(LPPROPGRIDITEM &item)
name = (LPTSTR)item->lpCurValue; name = (LPTSTR)item->lpCurValue;
} }
} }
char pto[512];
std::vector<PROPGRIDITEM> PhysicalInstance::getProperties() std::vector<PROPGRIDITEM> PhysicalInstance::getProperties()
{ {
std::vector<PROPGRIDITEM> properties; std::vector<PROPGRIDITEM> properties;
@@ -234,13 +234,17 @@ std::vector<PROPGRIDITEM> PhysicalInstance::getProperties()
(LPARAM)name.c_str(), (LPARAM)name.c_str(),
PIT_EDIT PIT_EDIT
)); ));
char pso[512];
sprintf(pto, "%g, %g, %g", cFrame.translation.x, cFrame.translation.y, cFrame.translation.z, "what");
LPCSTR str = LPCSTR(pto);
std::cout << str << std::endl;
properties.push_back(createPGI( properties.push_back(createPGI(
"Item", "Item",
"Offset", "Offset",
"The position of the object in the workspace", "The position of the object in the workspace",
(LPARAM)"Coming soon", (LPARAM)str,
PIT_EDIT PIT_EDIT
)); ));
return properties; return properties;

View File

@@ -143,7 +143,7 @@ Demo::Demo(const GAppSettings& settings,HWND parentWindow) { //: GApp(settings,w
SetWindowLongPtr(_hwndRenderer,GWL_USERDATA,(LONG)this); SetWindowLongPtr(_hwndRenderer,GWL_USERDATA,(LONG)this);
_propWindow = new PropertyWindow(0, 0, 200, 640, hThisInstance); _propWindow = new PropertyWindow(0, 0, 200, 640, hThisInstance);
IEBrowser* webBrowser = new IEBrowser(_hwndToolbox); IEBrowser* webBrowser = new IEBrowser(_hwndToolbox);
webBrowser->navigateSyncURL(L"http://scottbeebiwan.tk/g3d/toolbox/"); //webBrowser->navigateSyncURL(L"http://scottbeebiwan.tk/g3d/toolbox/");
} }
void clearInstances() void clearInstances()