Changed how properties work

This commit is contained in:
andreja6
2018-10-23 06:49:41 -07:00
parent 18b856602c
commit ee528d1245
11 changed files with 26 additions and 34 deletions

View File

@@ -1,20 +1,15 @@
#include "Property.h"
Property::Property(PROPGRIDITEM * item, void(*onPropUpdate)(PROPGRIDITEM))
Property::Property(PROPGRIDITEM item, DWORD addr)
{
this->callbackFuncOnChange = onPropUpdate;
this->addr = addr;
this->item = item;
}
Property::~Property(void)
{
delete item;
}
void Property::updateProperty(PROPGRIDITEM item)
{
callbackFuncOnChange(item);
}