From 6cecd7c5a3be62d97506fb3131fb19068f835209 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Tue, 17 Feb 2004 21:50:44 +0000 Subject: [PATCH] inserted _NO_MDI questions svn path=/trunk/; revision=8229 --- .../system/explorer/shell/mainframe.cpp | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/reactos/subsys/system/explorer/shell/mainframe.cpp b/reactos/subsys/system/explorer/shell/mainframe.cpp index 9e1d6fffe2b..be209339d0b 100644 --- a/reactos/subsys/system/explorer/shell/mainframe.cpp +++ b/reactos/subsys/system/explorer/shell/mainframe.cpp @@ -427,7 +427,7 @@ LRESULT MainFrame::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam) #ifndef _NO_MDI return DefFrameProc(_hwnd, _hmdiclient, nmsg, wparam, lparam); #else - return super::WNdProc(nmsg, wparam, lparam); + return super::WndProc(nmsg, wparam, lparam); #endif } @@ -454,8 +454,10 @@ int MainFrame::Command(int id, int code) while(*root) ++root; +#ifndef _NO_MDI if (activate_drive_window(root)) return 0; +#endif _tsplitpath(root, drv, 0, 0, 0); @@ -547,12 +549,12 @@ int MainFrame::Command(int id, int code) TCHAR path[MAX_PATH]; FileChildWindow* child; - if (activate_child_window(TEXT("unixfs"))) - break; - getcwd(path, MAX_PATH); #ifndef _NO_MDI + if (activate_child_window(TEXT("unixfs"))) + break; + FileChildWindow::create(_hmdiclient, FileChildWndInfo(path)); #else ///@todo SDI implementation @@ -563,8 +565,10 @@ int MainFrame::Command(int id, int code) case ID_DRIVE_DESKTOP: { TCHAR path[MAX_PATH]; +#ifndef _NO_MDI if (activate_child_window(TEXT("Desktop"))) break; +#endif GetCurrentDirectory(MAX_PATH, path); @@ -573,13 +577,12 @@ int MainFrame::Command(int id, int code) case ID_DRIVE_SHELL_NS: { TCHAR path[MAX_PATH]; - - if (activate_child_window(TEXT("Shell"))) - break; - GetCurrentDirectory(MAX_PATH, path); #ifndef _NO_MDI + if (activate_child_window(TEXT("Shell"))) + break; + FileChildWindow::create(ShellChildWndInfo(_hmdiclient, path, DesktopFolderPath())); #else ///@todo SDI implementation @@ -587,10 +590,10 @@ int MainFrame::Command(int id, int code) break;} case ID_DRIVE_NTOBJ_NS: { +#ifndef _NO_MDI if (activate_child_window(TEXT("NTOBJ"))) break; -#ifndef _NO_MDI FileChildWindow::create(NtObjChildWndInfo(_hmdiclient, TEXT("\\"))); #else ///@todo SDI implementation @@ -612,10 +615,10 @@ int MainFrame::Command(int id, int code) ///@todo prompt for image file +#ifndef _NO_MDI if (activate_child_window(TEXT("FAT"))) break; -#ifndef _NO_MDI FileChildWindow::create(FATChildWndInfo(_hmdiclient, TEXT("FAT Image"))); //@@ #else ///@todo SDI implementation