partly implemented control panel window

svn path=/trunk/; revision=5885
This commit is contained in:
Martin Fuchs
2003-08-27 21:07:33 +00:00
parent f97528ca2d
commit 49f689ef95
16 changed files with 88 additions and 47 deletions
@@ -211,13 +211,22 @@ LRESULT MainFrame::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
return (LPARAM)&_menu_info;
case PM_OPEN_WINDOW: {
TCHAR path[MAX_PATH];
TCHAR buffer[MAX_PATH];
LPCTSTR path;
ShellPath shell_path = DesktopFolder();
//TODO: read paths and window placements from registry
GetCurrentDirectory(MAX_PATH, path);
if (lparam) {
// take over path from lparam
path = (LPCTSTR)lparam;
shell_path = path; // creates as "rooted" window
} else {
//TODO: read paths and window placements from registry
GetCurrentDirectory(MAX_PATH, buffer);
path = buffer;
}
// Shell Namespace as default view
ShellChildWndInfo create_info(path, DesktopFolder());
ShellChildWndInfo create_info(path, shell_path);
create_info._pos.showCmd = SW_SHOWMAXIMIZED;
create_info._pos.rcNormalPosition.left = 0;