因为默认的打开文件对话框没有文件类型选择,只能重载,但是重载之后不知道如何生成相关子窗口了,求教高手怎么处理

因为默认的打开文件对话框没有文件类型选择,只能重载,但是重载之后不知道怎么生成相关子窗口了,求教高手怎么办
因为默认的打开文件对话框没有文件类型选择,只能重载,但是重载之后不知道怎么生成相关子窗口了,求教高手怎么办  

有没有例子?


------解决方案--------------------
你用了CFileDialog吗,就是打开文件的通用对话框

MSDN曰:

CFileDialog fileDlg (TRUE, _T( "my "), _T( "*.my "),
OFN_FILEMUSTEXIST| szFilters, this);

// Display the file dialog. When the user clicks OK, fileDlg.DoModal()
// returns IDOK.
if( fileDlg.DoModal ()==IDOK )
{
CString pathName = fileDlg.GetPathName();

// Implement opening and reading of the file here.
...
// Change the title of the window to the title of the opened file.
CString fileName = fileDlg.GetFileTitle ();

SetWindowText(fileName);
}