Skip to content

Commit

Permalink
修正分分辨率改变时,任务栏窗口垂直位置不正确的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongyang219 committed Oct 16, 2018
1 parent 921fe4d commit bce66e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TrafficMonitor/TaskBarDlg.cpp
Expand Up @@ -253,7 +253,7 @@ bool CTaskBarDlg::AdjustWindowPos()
::MoveWindow(m_hMin, m_left_space + m_rect.Width(), 0, m_rcMin.Width() - m_rect.Width(), m_rcMin.Height(), TRUE);
m_rect.MoveToX(m_left_space);
}
m_rect.MoveToY((m_rcBar.Height() - m_rect.Height()) / 2);
m_rect.MoveToY((rcBar.Height() - m_rect.Height()) / 2);
if (theApp.m_taskbar_data.horizontal_arrange && theApp.m_win_version.IsWindows7())
m_rect.MoveToY(m_rect.top + theApp.DPI(1));
MoveWindow(m_rect);
Expand Down

0 comments on commit bce66e1

Please sign in to comment.