[EXPLORER]
authorJérôme Gardou <jerome.gardou@reactos.org>
Sun, 4 Apr 2010 22:03:53 +0000 (22:03 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Sun, 4 Apr 2010 22:03:53 +0000 (22:03 +0000)
Handle WM_DISPLAYCHANGE message.

Works on WinXP, but not with the branch

svn path=/branches/reactos-yarotows/; revision=46725

base/shell/explorer/desktop/desktop.cpp

index aa63996..99b990b 100644 (file)
@@ -435,6 +435,12 @@ LRESULT DesktopWindow::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
                explorer_show_frame(SW_SHOWNORMAL);
                break;
 
+      case WM_DISPLAYCHANGE:
+        MoveWindow(_hwnd, 0, 0, LOWORD(lparam), HIWORD(lparam), TRUE);
+        MoveWindow(g_Globals._hwndShellView, 0, 0, LOWORD(lparam), HIWORD(lparam), TRUE);
+        MoveWindow(_desktopBar, 0, HIWORD(lparam) - DESKTOPBARBAR_HEIGHT, LOWORD(lparam), DESKTOPBARBAR_HEIGHT, TRUE);
+        break;
+
          case WM_GETISHELLBROWSER:
                return (LRESULT)static_cast<IShellBrowser*>(this);