摘要: MFC CEidt获取焦点——————————————————————————————BOOL CMMDlg::OnInitDialog() { CDialog::OnInitDialog(); // Set the icon for this dialog. The framework does this automatically // when the application 's main window is not a dialog SetIcon(m_hIcon, TRUE); // Set big icon SetIcon(m_hIcon, FALSE); // Set 阅读全文
posted @ 2011-04-13 15:18 Watson.Long 阅读(2471) 评论(0) 推荐(0) 编辑
摘要: URL Record1、MFC中对话框类函数 DoModal() 的调用前后:http://www.360doc.com/content/11/0107/21/115653_84841439.shtml2、MFC中自由使用自定义消息:http://www.cppblog.com/xbgs/archive/2008/12/17/69647.html 阅读全文
posted @ 2011-04-13 11:14 Watson.Long 阅读(252) 评论(0) 推荐(0) 编辑
摘要: MFC打开一个对话框 要求获取文件路径的代码————————————————————————————————经常遇到程序里面用了一个...按钮 单击后打开一个对话框 获取输入的路径下面就是这段代码 其实很简单 只不过 不知道而已CFileDialog dlg(1,NULL,NULL,OFN_HIDEREADONLY ,"All Files(*.*)|*.*||");if(IDOK!=dlg.DoModal()) return;CString strPath = dlg.GetPathName(); 阅读全文
posted @ 2011-04-13 08:53 Watson.Long 阅读(6233) 评论(0) 推荐(0) 编辑