Added update property method

This commit is contained in:
andreja6
2018-10-23 06:52:06 -07:00
parent ee528d1245
commit 99f78be344
2 changed files with 6 additions and 3 deletions

View File

@@ -25,9 +25,12 @@ void Instance::render(RenderDevice* rd)
}
}
void Instance::PropUpdate(DWORD addr, PROPGRIDITEM pItem)
void Instance::PropUpdate(DWORD &addr, PROPGRIDITEM &pItem)
{
if((DWORD)&name == addr)
{
name = pItem.lpCurValue;
}
}
std::vector<Property> Instance::getProperties()

View File

@@ -21,7 +21,7 @@ public:
Instance* getParent();
virtual Instance* clone() const { return new Instance(*this); }
virtual std::vector<Property> getProperties();
virtual void PropUpdate(DWORD addr, PROPGRIDITEM pItem);
virtual void PropUpdate(DWORD &addr, PROPGRIDITEM &pItem);
protected:
std::string className;
Instance* parent; // Another pointer.