mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[SHELL32]
- Pass indistinctly WM_SYSCOLORCHANGE and WM_SETTINGCHANGE messages sent to the shell progman window, down to its children windows (SHELLDLL_DefView and its associated ListView), as shown by tracking windows messages on Win2k3. - If we receive a WM_SETTINGCHANGE with wParam == SPI_SETWORKAREA, i.e. the desktop working area was modified, we need to resize the underlying DefView, as shown by tracking windows messages on Win2k3. For the moment we implement support for only the primary monitor. CORE-11375 #resolve CORE-5618 #resolve CORE-5620 svn path=/trunk/; revision=71525
This commit is contained in:
parent
d63c3a89ad
commit
70fcffe67a
1 changed files with 22 additions and 9 deletions
|
@ -476,16 +476,29 @@ LRESULT CALLBACK CDesktopBrowser::ProgmanWindowProc(IN HWND hwnd, IN UINT uMsg,
|
|||
case WM_SYSCOLORCHANGE:
|
||||
case WM_SETTINGCHANGE:
|
||||
{
|
||||
if (uMsg == WM_SYSCOLORCHANGE || wParam == SPI_SETDESKWALLPAPER || wParam == 0)
|
||||
if (pThis->hWndShellView != NULL)
|
||||
{
|
||||
if (pThis->hWndShellView != NULL)
|
||||
{
|
||||
/* Forward the message */
|
||||
SendMessageW(pThis->hWndShellView,
|
||||
uMsg,
|
||||
wParam,
|
||||
lParam);
|
||||
}
|
||||
/* Forward the message */
|
||||
SendMessageW(pThis->hWndShellView,
|
||||
uMsg,
|
||||
wParam,
|
||||
lParam);
|
||||
}
|
||||
|
||||
if (uMsg == WM_SETTINGCHANGE && wParam == SPI_SETWORKAREA &&
|
||||
pThis->hWndShellView != NULL)
|
||||
{
|
||||
RECT rcWorkArea;
|
||||
|
||||
// FIXME: Add support for multi-monitor!
|
||||
SystemParametersInfoW(SPI_GETWORKAREA,
|
||||
0, &rcWorkArea, 0);
|
||||
|
||||
SetWindowPos(pThis->hWndShellView, NULL,
|
||||
rcWorkArea.left, rcWorkArea.top,
|
||||
rcWorkArea.right - rcWorkArea.left,
|
||||
rcWorkArea.bottom - rcWorkArea.top,
|
||||
SWP_NOMOVE | SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOOWNERZORDER);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue