void PyramidParamDlgProc::Update() { if (mpPyramidObj == NULL) return; BOOL usePhysUVs = mpPyramidObj->GetUsePhysicalScaleUVs(); CheckDlgButton(mhWnd, IDC_REAL_WORLD_MAP_SIZE, usePhysUVs); EnableWindow(GetDlgItem(mhWnd, IDC_REAL_WORLD_MAP_SIZE), mpPyramidObj->HasUVW()); }