The maxHp is used in less than 20 occasions in the source, simply reverse-searching the getter-Function should be sufficient to find the place. And since you know it is some kind of CWnd... (probably CWndTaskbar) you have like 2 occasions left and the 'T'-Window allready has the right solution so all thats left to you is C&P. Did you even try anything or are you just waiting until someone gives you a C&P piece of source code?