explorer: Use a valid taskbar position when the taskbar is hidden.
commit8459a5272a5b16bf99d058aade01c946a71c94f8
authorZhiyi Zhang <zzhang@codeweavers.com>
Mon, 14 Nov 2022 14:19:26 +0000 (14 22:19 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 17 Nov 2022 09:00:24 +0000 (17 10:00 +0100)
tree2b0eac7ae29246f44bf2323f5077ca9226e61f5d
parentb6818e2c20e756ea52fb7d783e283b2ee6b6b9a6
explorer: Use a valid taskbar position when the taskbar is hidden.

Some applications use FindWindowA() with class Shell_TrayWnd to find the taskbar window on Windows.
Then GetWindowRect() is called to get the taskbar window rectangle. Finally, the taskbar window
rectangle is subtracted from the primary screen rectangle to calculate the work area. Without a
valid taskbar window position, these applications end up getting an incorrect work area and going
down the wrong path. So use the same position and size as the host system panel for explorer taskbar
when it's hidden.
programs/explorer/systray.c
programs/explorer/tests/explorer.c