你提的这个问题和工具栏无关啊!
你是不是想问CFileDialog的使用啊
// szFilters is a text string that includes two file name filters:
// "*.my" for "MyType Files" and "*.*' for "All Files."
TCHAR szFilters[]= _T("MyType Files (*.my)|*.my|All Files (*.*)|*.*||");
// Create an Open dialog; the default file name extension is ".my".
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 ();