首页
学习
活动
专区
圈层
工具
发布
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    VC++6.0入门——第7讲 对话框编程(一)

    菜单中的按钮静态文本框响应事件1.要改名字,默认都是一样的,需要改成不一样的名字,才能添加单击事件的响应2.默认样式里的通知是不勾选的,需要勾上,让他能接收通知实现加法运算GetDlgItem(IDC_EDIT1)->GetWindowText...handler code hereint num1,num2,num3;char ch1[10],ch2[10],ch3[10]; // 字符长度为10GetDlgItem(IDC_EDIT1)->GetWindowText...(ch1,10);GetDlgItem(IDC_EDIT2)->GetWindowText(ch2,10);// 字符转数字num1 = atoi(ch1);num2 = atoi(ch2);num3...+ m_num2;UpdateData(FALSE);使用控件变量int num1,num2,num3;char ch1[10],ch2[10],ch3[10]; // 字符长度为10m_edit1.GetWindowText...(ch1,10);m_edit2.GetWindowText(ch2,10);num1 = atoi(ch1);num2 = atoi(ch2);num3 = num1 + num2;itoa(num3

    49210
    领券