Game Development Reference
In-Depth Information
sprintf( str, "%f", Vw );
SetDlgItemText(hDlg, IDC_VW, str);
sprintf( str, "%f", GammaW );
SetDlgItemText(hDlg, IDC_GAMMAW, str);
sprintf( str, "%f", Cw );
SetDlgItemText(hDlg, IDC_CW, str);
.
.
.
case IDC_REFRESH:
.
.
.
// New variables:
GetDlgItemText(hDlg, IDC_M, str, 15);
m = atof(str);
GetDlgItemText(hDlg, IDC_CD, str, 15);
Cd = atof(str);
GetDlgItemText(hDlg, IDC_VW, str, 15);
Vw = atof(str);
GetDlgItemText(hDlg, IDC_GAMMAW, str, 15);
GammaW = atof(str);
GetDlgItemText(hDlg, IDC_CW, str, 15);
Cw = atof(str);
.
.
.
case IDC_FIRE:
.
.
.
// New variables:
GetDlgItemText(hDlg, IDC_M, str, 15);
m = atof(str);
GetDlgItemText(hDlg, IDC_CD, str, 15);
Cd = atof(str);
GetDlgItemText(hDlg, IDC_VW, str, 15);
Vw = atof(str);
GetDlgItemText(hDlg, IDC_GAMMAW, str, 15);
GammaW = atof(str);
Search Nedrilad ::




Custom Search