[WIN32SS][SHELL32] Fix the location and repaint of the version info shown on the...
authorMark Jansen <mark.jansen@reactos.org>
Sat, 22 Jul 2017 18:27:32 +0000 (18:27 +0000)
committerMark Jansen <mark.jansen@reactos.org>
Sat, 22 Jul 2017 18:27:32 +0000 (18:27 +0000)
CORE-13567 #resolve #comment Thanks!

svn path=/trunk/; revision=75390

reactos/dll/win32/shell32/shelldesktop/CDesktopBrowser.cpp
reactos/win32ss/user/ntuser/desktop.c

index dacc0c2..e452039 100644 (file)
@@ -383,6 +383,8 @@ LRESULT CDesktopBrowser::OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &b
         ::ShowWindow(m_hWnd, SW_RESTORE);
     }
 
+    ::InvalidateRect(m_hWndShellView, NULL, TRUE);
+
     return 0;
 }
 
index 7464091..6ecf94b 100644 (file)
@@ -1346,9 +1346,14 @@ IntPaintDesktop(HDC hDC)
 
         if (!UserSystemParametersInfo(SPI_GETWORKAREA, 0, &Rect, 0))
         {
+            Rect.left = Rect.top = 0;
             Rect.right  = UserGetSystemMetrics(SM_CXSCREEN);
             Rect.bottom = UserGetSystemMetrics(SM_CYSCREEN);
         }
+        else
+        {
+            RECTL_vOffsetRect(&Rect, -Rect.left, -Rect.top);
+        }
 
         /*
          * Set up the fonts (otherwise use default ones)