I did this way :)
CToolBar* pCtl = (CToolBar*)GetParent()->GetDlgItem(ControlID);
pCtl->ShowWindow(FALSE);
I was not able to remove the horizontal tool bar on top right of the open dialog so i search through net and found a solution
CToolBarCtrl m_Toolbar;
CWnd* Child = GetParent()->GetWindow(GW_CHILD);
while (Child)
{
TCHAR clsName[16];
GetClassName(Child->m_hWnd, clsName, 16);
if (lstrcmp(clsName, "ToolbarWindow32")==0 && Child->GetDlgCtrlID()==0x0440)
{
m_Toolbar.SubclassWindow(Child->m_hWnd);
break; }
Child = Child->GetNextWindow();
}
hope it ll be helpful for some one
Thanks a lot:)