class CXWnd * CreateLabel_Detour(CXWnd *CWin, CControlTemplate *CControl) { CLabel *clabel = (CLabel *)CreateLabel_Trampoline(CWin, CControl); if (CControl->Controller) { clabel->EQType = atoi(CControl->Controller->Text); } else { clabel->EQType = 0; } return (CXWnd*)clabel; }
class CXWnd * CreateLabel_Detour(class CXWnd *CWin, struct _CControl *CControl) { CSIDLWND *p; class CXWnd *tmp = CreateLabel_Trampoline(CWin, CControl); p = (CSIDLWND *)tmp; if (CControl->EQType) { *((DWORD *)&p->SidlPiece) = atoi(CControl->EQType->Text); } else { *((DWORD *)&p->SidlPiece) = 0; } return tmp; }