struct removal and stopped parts from moving up

This commit is contained in:
DirtPiper
2018-10-23 14:00:28 -04:00
parent 1a7cd2e250
commit 7273ee9ce0
2 changed files with 8 additions and 8 deletions

View File

@@ -5,12 +5,12 @@
#include "resource.h"
#include "PropertyWindow.h"
typedef struct typPRGP {
/*typedef struct typPRGP {
Instance* instance; // Declare member types
Property ∝
} PRGP;
} PRGP;*/
std::vector<PRGP> propvec;
//std::vector<PRGP> propvec;
LRESULT CALLBACK PropProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
PropertyWindow *propWind = (PropertyWindow *)GetWindowLongPtr(hwnd, GWL_USERDATA);
@@ -124,9 +124,9 @@ void PropertyWindow::SetProperties(Instance * instance)
{
::PROPGRIDITEM item = prop.at(i).item;
PropGrid_AddItem(_propGrid, &item);
PRGP propgp;
propgp.instance = instance;
propgp.prop = prop.at(i);
//PRGP propgp;
//propgp.instance = instance;
//propgp.prop = prop.at(i);
}
PropGrid_ExpandAllCatalogs(_propGrid);
SetWindowLongPtr(_propGrid,GWL_USERDATA,(LONG)this);