LAPTOP-SNT8I5JK\Boounion
2025-03-10 6da913343f320029f2a7b5b7c6aae7e8831a5fd4
SourceCode/Bond/Servo/ServoDlg.cpp
@@ -658,6 +658,7 @@
      CRect rcWnd;
      GetWindowRect(&rcWnd);
      int nHeight = GetSystemMetrics(SM_CYSCREEN) - rcWnd.bottom - 38;
      if (nHeight < 280) nHeight = 280;
      m_pAlarmDlg->MoveWindow(rcWnd.left, rcWnd.bottom - 8, rcWnd.Width(), nHeight);
   }
   ASSERT(m_pAlarmDlg);
@@ -686,6 +687,7 @@
      CRect rcWnd;
      GetWindowRect(&rcWnd);
      int nHeight = GetSystemMetrics(SM_CYSCREEN) - rcWnd.bottom - 38;
      if (nHeight < 280) nHeight = 280;
      m_pLogDlg->MoveWindow(rcWnd.left, rcWnd.bottom - 8, rcWnd.Width(), nHeight);
   }
   ASSERT(m_pLogDlg);
@@ -945,13 +947,13 @@
   if (m_pLogDlg != nullptr && !m_pLogDlg->IsZoomed()) {
      CRect rcWnd;
      GetWindowRect(&rcWnd);
      m_pLogDlg->MoveWindow(rcWnd.left, rcWnd.bottom - 8, rcWnd.Width(), 200);
      m_pLogDlg->SetWindowPos(nullptr, rcWnd.left, rcWnd.bottom - 8, 0, 0, SWP_NOSIZE);
   }
   if (m_pAlarmDlg != nullptr && !m_pAlarmDlg->IsZoomed()) {
      CRect rcWnd;
      GetWindowRect(&rcWnd);
      m_pAlarmDlg->MoveWindow(rcWnd.left, rcWnd.bottom - 8, rcWnd.Width(), 200);
      m_pAlarmDlg->SetWindowPos(nullptr, rcWnd.left, rcWnd.bottom - 8, 0, 0, SWP_NOSIZE);
   }
   CDialogEx::OnMove(x, y);