Zebediah Figura zfigura@codeweavers.com wrote:
SetWindowPos( win->button, 0, pos, 0, start_button_width, tray_height,
SetWindowPos( win->button, 0, pos, 0, start_button_width, tray_height - 4, SWP_NOZORDER | SWP_NOACTIVATE | SWP_SHOWWINDOW );
...
SetWindowPos( win->button, 0, pos, 0, width, tray_height,
SetWindowPos( win->button, 0, pos, 0, width, tray_height - 4, SWP_NOZORDER | SWP_NOACTIVATE | SWP_SHOWWINDOW );
...
tray_width = GetSystemMetrics( SM_CXSCREEN ); tray_height = max( icon_cy, size.cy );
- tray_height = max( tray_height, 26 );
...
start_button_width = size.cx;
- SetWindowPos( tray_window, HWND_TOPMOST, 0, GetSystemMetrics( SM_CYSCREEN ) - tray_height,
tray_width, tray_height, SWP_NOACTIVATE | SWP_SHOWWINDOW );
- SetWindowPos( tray_window, HWND_TOPMOST, -2, GetSystemMetrics(SM_CYSCREEN) - tray_height - 2,
tray_width + 4, tray_height + 4, SWP_NOACTIVATE | SWP_SHOWWINDOW );
I guess that magic -4/-2 are caused by added WS_THICKFRAME style, if that's the case an appropriate system metric should be used instead to make the code work for different visual themes.
26 above also needs to be changed to an appropriate system metric.