|
@@ -116,6 +116,12 @@ void CUpgradeWnd::AdjustLayout()
|
|
m_btnUpgrade.GetWindowRect(rcCtrl);
|
|
m_btnUpgrade.GetWindowRect(rcCtrl);
|
|
ScreenToClient(rcCtrl);
|
|
ScreenToClient(rcCtrl);
|
|
m_btnUpgrade.SetWindowPos(nullptr, rectClient.left + margin, rectClient.top + nHeight, rcCtrl.Width(), rcCtrl.Height(), SWP_NOACTIVATE | SWP_NOZORDER);
|
|
m_btnUpgrade.SetWindowPos(nullptr, rectClient.left + margin, rectClient.top + nHeight, rcCtrl.Width(), rcCtrl.Height(), SWP_NOACTIVATE | SWP_NOZORDER);
|
|
|
|
+ nHeight += rcCtrl.Height() + dr;
|
|
|
|
+
|
|
|
|
+ // 提示语
|
|
|
|
+ m_text_notify.GetWindowRect(rcCtrl);
|
|
|
|
+ ScreenToClient(rcCtrl);
|
|
|
|
+ m_text_notify.SetWindowPos(nullptr, rectClient.left + margin, rectClient.top + nHeight + dr, rectClient.Width() - margin * 2 , m_nCtrlHeight * 2, SWP_NOACTIVATE | SWP_NOZORDER);
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -159,6 +165,8 @@ int CUpgradeWnd::OnCreate(LPCREATESTRUCT lpCreateStruct)
|
|
return -1;
|
|
return -1;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ m_text_notify.Create(_T("提示:\n 脚本修改后必须重启SATHelper!"), SS_LEFT | WS_CHILD | WS_VISIBLE, rectDummy, this, IDC_STATIC);
|
|
|
|
+
|
|
// 以编辑框高度为所有控件高度标准;
|
|
// 以编辑框高度为所有控件高度标准;
|
|
CRect rcCtrl;
|
|
CRect rcCtrl;
|
|
m_edit_path.GetClientRect(&rcCtrl);
|
|
m_edit_path.GetClientRect(&rcCtrl);
|
|
@@ -283,7 +291,7 @@ void CUpgradeWnd::SetStaticFont()
|
|
m_text_user.SetFont(&m_fntPropList);
|
|
m_text_user.SetFont(&m_fntPropList);
|
|
m_text_password.SetFont(&m_fntPropList);
|
|
m_text_password.SetFont(&m_fntPropList);
|
|
m_check_remember.SetFont(&m_fntPropList);
|
|
m_check_remember.SetFont(&m_fntPropList);
|
|
-
|
|
|
|
|
|
+ m_text_notify.SetFont(&m_fntPropList);
|
|
m_edit_path.SetFont(&m_fntPropList);
|
|
m_edit_path.SetFont(&m_fntPropList);
|
|
m_ftp_user.SetFont(&m_fntPropList);
|
|
m_ftp_user.SetFont(&m_fntPropList);
|
|
m_ftp_password.SetFont(&m_fntPropList);
|
|
m_ftp_password.SetFont(&m_fntPropList);
|