Skip to content

Commit 05dd188

Browse files
committed
wine环境下任务栏窗口在桌面的位置跟随“任务栏窗口显示在任务栏左侧”的设置;添加总是置顶处理
1 parent 6fc6ef8 commit 05dd188

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

TrafficMonitor/WineTaskbarDlg.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
void CWineTaskbarDlg::InitTaskbarWnd()
55
{
6+
SetWindowPos(&wndTopMost, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
67
}
78

89
void CWineTaskbarDlg::AdjustTaskbarWndPos(bool force_adjust)
@@ -11,7 +12,10 @@ void CWineTaskbarDlg::AdjustTaskbarWndPos(bool force_adjust)
1112
int screen_width = GetSystemMetrics(SM_CXSCREEN);
1213
int screen_height = GetSystemMetrics(SM_CYSCREEN);
1314
CRect rect{ m_rect };
14-
rect.MoveToXY(screen_width - m_rect.Width(), screen_height - m_rect.Height());
15+
if (theApp.m_taskbar_data.tbar_wnd_on_left)
16+
rect.MoveToXY(0, screen_height - m_rect.Height());
17+
else
18+
rect.MoveToXY(screen_width - m_rect.Width(), screen_height - m_rect.Height());
1519
this->MoveWindow(rect);
1620
}
1721

0 commit comments

Comments
 (0)