mfc edit使用方法

来源:互联网 发布:淘宝客服工作内容介绍 编辑:程序博客网 时间:2024/06/05 20:05
 //获得EDIT    CEdit* pBoxOne;    pBoxOne = (CEdit*) GetDlgItem(IDC_EDIT1);    //赋值    //pBoxOne-> SetWindowText( _T("FOO ") );    //取值    CString str;    pBoxOne-> GetWindowText(str);    MessageBox(str,_T("程序运行结果"),MB_OK);    str.ReleaseBuffer();
0 0
原创粉丝点击