怎么使用"打开文件对话框":CFileDialog?内容见内
我想在选择打开文件时,使用自定义的对话框:
使用如下:
重载
void CMainFrame::OnFileOpen()
{
// TODO: Add your command handler code here
CString filter;
filter = "All Supported Files(*.ini)|*.ini|";
filter+= "All Files(*.*)|*.*||";
CFileDialog dlg(TRUE,NULL,NULL,0,(LPCSTR)filter);
if (dlg.DoModal() != IDOK)
return;
.......
return;
}
直接运行没有问题,但是debug时运行到if(dlg.DoModal()....)时出现
User breakpoint called from code at 0x77f9f9df
然后再也无法继续,这样后面的我就没法dubug了,请问这是怎么回师?
是不是不能重载这个函数?