From 5114ceb4b762f905e74b9fd7ddae246f15dfe68d Mon Sep 17 00:00:00 2001 From: andreja6 Date: Tue, 23 Oct 2018 14:11:28 -0700 Subject: [PATCH] Removed navigate for now, made char work --- PhysicalInstance.cpp | 10 +++++++--- main.cpp | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/PhysicalInstance.cpp b/PhysicalInstance.cpp index 0dbc596..a550e80 100644 --- a/PhysicalInstance.cpp +++ b/PhysicalInstance.cpp @@ -221,7 +221,7 @@ void PhysicalInstance::PropUpdate(LPPROPGRIDITEM &item) name = (LPTSTR)item->lpCurValue; } } - +char pto[512]; std::vector PhysicalInstance::getProperties() { std::vector properties; @@ -234,13 +234,17 @@ std::vector PhysicalInstance::getProperties() (LPARAM)name.c_str(), 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( "Item", "Offset", "The position of the object in the workspace", - (LPARAM)"Coming soon", + (LPARAM)str, PIT_EDIT )); return properties; diff --git a/main.cpp b/main.cpp index 0f1bc7e..f143590 100644 --- a/main.cpp +++ b/main.cpp @@ -143,7 +143,7 @@ Demo::Demo(const GAppSettings& settings,HWND parentWindow) { //: GApp(settings,w SetWindowLongPtr(_hwndRenderer,GWL_USERDATA,(LONG)this); _propWindow = new PropertyWindow(0, 0, 200, 640, hThisInstance); IEBrowser* webBrowser = new IEBrowser(_hwndToolbox); - webBrowser->navigateSyncURL(L"http://scottbeebiwan.tk/g3d/toolbox/"); + //webBrowser->navigateSyncURL(L"http://scottbeebiwan.tk/g3d/toolbox/"); } void clearInstances()