摘要: 获取控件上的文本值---例子是CEdit 的七种方法2010年03月23日 星期二 11:221. int num1,num2,num3;char ch1[10],ch2[10],ch3[10];GetDlgItem(IDC_EDIT1)->GetWindowText(ch1,10);GetDlgItem(IDC_EDIT2)->GetWindowText(ch2,10);num1=atoi(ch1);num2=atoi(ch2);num3=num1+num2;itoa(num3,ch3,10);GetDlgItem(IDC_EDIT3)->SetWindowText(ch3 阅读全文
posted @ 2011-09-28 17:10 眯妖 阅读(6420) 评论(0) 推荐(0) 编辑