correct comments
authorMartin Fuchs <fuchs.martin@gmail.com>
Wed, 18 Feb 2004 00:01:59 +0000 (00:01 +0000)
committerMartin Fuchs <fuchs.martin@gmail.com>
Wed, 18 Feb 2004 00:01:59 +0000 (00:01 +0000)
svn path=/trunk/; revision=8242

reactos/subsys/system/explorer/shell/filechild.cpp
reactos/subsys/system/explorer/shell/mainframe.cpp
reactos/subsys/system/explorer/utility/window.cpp
reactos/subsys/system/explorer/utility/window.h
reactos/subsys/system/explorer/winefile/winefile.c

index 171cc67..28ca057 100644 (file)
@@ -365,7 +365,8 @@ void FileChildWindow::resize_children(int cx, int cy)
        if (_left_hwnd)
                hdwp = DeferWindowPos(hdwp, _left_hwnd, 0, rt.left, rt.top, _split_pos-SPLIT_WIDTH/2-rt.left, rt.bottom-rt.top, SWP_NOZORDER|SWP_NOACTIVATE);
 
-       hdwp = DeferWindowPos(hdwp, _right_hwnd, 0, rt.left+cx+1, rt.top, rt.right-cx, rt.bottom-rt.top, SWP_NOZORDER|SWP_NOACTIVATE);
+       if (_right_hwnd)
+               hdwp = DeferWindowPos(hdwp, _right_hwnd, 0, rt.left+cx+1, rt.top, rt.right-cx, rt.bottom-rt.top, SWP_NOZORDER|SWP_NOACTIVATE);
 
        EndDeferWindowPos(hdwp);
 }
index be20933..9db46e2 100644 (file)
@@ -666,8 +666,6 @@ int MainFrame::Command(int id, int code)
 
 void MainFrame::resize_frame_rect(PRECT prect)
 {
-       int new_top;
-
        if (IsWindowVisible(_htoolbar)) {
                SendMessage(_htoolbar, WM_SIZE, 0, 0);
                ClientRect rt(_htoolbar);
@@ -678,7 +676,7 @@ void MainFrame::resize_frame_rect(PRECT prect)
        if (IsWindowVisible(_hdrivebar)) {
                SendMessage(_hdrivebar, WM_SIZE, 0, 0);
                ClientRect rt(_hdrivebar);
-               new_top = --prect->top + rt.bottom+3;
+               int new_top = --prect->top + rt.bottom+3;
                MoveWindow(_hdrivebar, 0, prect->top, rt.right, new_top, TRUE);
                prect->top = new_top;
 //             prect->bottom -= rt.bottom+2;
index 54a0f69..1a3d6d1 100644 (file)
@@ -503,7 +503,7 @@ LRESULT ChildWindow::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
 
 void ChildWindow::resize_children(int cx, int cy)
 {
-       HDWP hdwp = BeginDeferWindowPos(4);
+       HDWP hdwp = BeginDeferWindowPos(2);
        RECT rt;
 
        rt.left   = 0;
@@ -520,7 +520,8 @@ void ChildWindow::resize_children(int cx, int cy)
                cx = 0;
        }
 
-       hdwp = DeferWindowPos(hdwp, _right_hwnd, 0, rt.left+cx+1, rt.top, rt.right-cx, rt.bottom-rt.top, SWP_NOZORDER|SWP_NOACTIVATE);
+       if (_right_hwnd)
+               hdwp = DeferWindowPos(hdwp, _right_hwnd, 0, rt.left+cx+1, rt.top, rt.right-cx, rt.bottom-rt.top, SWP_NOZORDER|SWP_NOACTIVATE);
 
        EndDeferWindowPos(hdwp);
 }
index 836406e..c5493be 100644 (file)
@@ -265,7 +265,7 @@ struct IconWindowClass : public WindowClass
 #define        COLOR_SPLITBAR          LTGRAY_BRUSH
 
 
- /// menu info structure for MDI child windows
+ /// menu info structure
 struct MenuInfo
 {
        HMENU   _hMenuView;
index 6cf39b2..e7839e6 100644 (file)
@@ -3670,7 +3670,7 @@ void explorer_show_frame(HWND hwndParent, int cmdshow)
 
                for(p=Globals.drives; *p; ) {
 #ifdef _NO_EXTENSIONS
-                 /* insert drive letter */
+                       /* insert drive letter */
                        TCHAR b[3] = {tolower(*p)};
                        SendMessage(Globals.hdrivebar, TB_ADDSTRING, 0, (LPARAM)b);
 #endif