Added update property method
This commit is contained in:
@@ -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()
|
std::vector<Property> Instance::getProperties()
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ public:
|
|||||||
Instance* getParent();
|
Instance* getParent();
|
||||||
virtual Instance* clone() const { return new Instance(*this); }
|
virtual Instance* clone() const { return new Instance(*this); }
|
||||||
virtual std::vector<Property> getProperties();
|
virtual std::vector<Property> getProperties();
|
||||||
virtual void PropUpdate(DWORD addr, PROPGRIDITEM pItem);
|
virtual void PropUpdate(DWORD &addr, PROPGRIDITEM &pItem);
|
||||||
protected:
|
protected:
|
||||||
std::string className;
|
std::string className;
|
||||||
Instance* parent; // Another pointer.
|
Instance* parent; // Another pointer.
|
||||||
|
|||||||
Reference in New Issue
Block a user