2014年10月3日

【转载】CCombobox使用大全

摘要: 一、如何添加/删除Combo Box内容1. 在Combo Box控件属性的Data标签里面添加,一行表示Combo Box下拉列表中的一行。换行用ctrl+回车。2. 在程序初始化时动态添加 如: //控件内容初始化 CString strTemp;((CComboBox*)GetDlgItem(... 阅读全文

posted @ 2014-10-03 14:20 iackjee 阅读(2053) 评论(0) 推荐(0) 编辑

获取c++ edit控件内容

摘要: CString str1,str2;((CEdit*)GetDlgItem(IDC_EDIT1))->GetWindowText(str1);((CEdit*)GetDlgItem(IDC_EDIT2))->GetWindowText(str2); 阅读全文

posted @ 2014-10-03 11:59 iackjee 阅读(2074) 评论(0) 推荐(0) 编辑

[转载]C++ CString与int 互转

摘要: 1.CString 转 intCString strtemp = "100";int intResult;intResult= atoi(strtemp);-----------------------------------------------------------------2 int 转... 阅读全文

posted @ 2014-10-03 11:40 iackjee 阅读(526) 评论(0) 推荐(0) 编辑

导航