1.拉一个编辑框并改ID为(IDC_xxx_EDIT)
2.添加一个Button Control控件
3双击Button Control控件编写消息映射函数
4.用定义的变量A来接收编辑框输入的数据
4.代码如下:
CString temp;
GetDlgItem(IDC_xxx_EDIT)->GetWindowText(temp);
A= atof(temp);
1.拉一个编辑框并改ID为(IDC_xxx_EDIT)
2.添加一个Button Control控件
3双击Button Control控件编写消息映射函数
4.用定义的变量A来接收编辑框输入的数据
4.代码如下:
CString temp;
GetDlgItem(IDC_xxx_EDIT)->GetWindowText(temp);
A= atof(temp);