关于CFileDialog对话框上返回上一层,新建文件夹按钮的处理,该怎么解决

关于CFileDialog对话框上返回上一层,新建文件夹按钮的处理
在系统提供的标准打开/保存对话框中,右上角有几个快捷按钮,如:“到上一级目录”,“新建文件夹”等。
它们好像是toolbar,请问各位大虾,是否有方法对它们进行控制,使它们Enable或Disable.  
谢谢了


------解决方案--------------------
《VC++技术内幕》上有例子。
------解决方案--------------------
散分吧!
------解决方案--------------------
呵呵,刚刚做过一个类似的问题的程序。我们采用的方法是将这两个按钮删除掉,需要派生cfiledialog类,给你个代码吧,自己看。
void CFileDialogEx::OnInitDone()
{
// Disable the selecting folder path Combo box
GetParent()-> GetDlgItem(cmb2)-> EnableWindow(FALSE);
// Disable the Edit control
GetParent()-> GetDlgItem(edt1)-> EnableWindow(FALSE);

// Delete two buttons: "up " and "new " of the dialog 's tool bar.
CWnd *pwnd = GetParent()-> GetWindow(GW_CHILD);
if(pwnd)
{
char *buf = new char[512];
ASSERT(buf);
while(pwnd != NULL)
{
::GetClassName(pwnd-> GetSafeHwnd(), buf, 512);
CString str=buf;
str.TrimRight();

if(_T( "ToolbarWindow32 ") == str)
{
CToolBar* pToolBar = (CToolBar*) pwnd;
CToolBarCtrl* pToolBarCtrl = &(pToolBar-> GetToolBarCtrl());
ASSERT(pToolBar);
ASSERT(pToolBarCtrl);

pToolBarCtrl-> DeleteButton(1); // delete "up " button
pToolBarCtrl-> DeleteButton(1); // delete "new " button
}

pwnd = pwnd-> GetNextWindow();
}
delete[] buf;
buf = NULL;
}
}