调整UI布局

This commit is contained in:
lovelyyoung 2021-10-20 13:07:11 +08:00
parent 582b1fdac3
commit 0e7bf9dd64
3 changed files with 8 additions and 8 deletions

Binary file not shown.

Binary file not shown.

View File

@ -165,10 +165,10 @@ BOOL CHuaGoCorrectDlg::OnInitDialog()
m_tab.GetClientRect(&tabRect); // 获取标签控件客户区Rect
// 调整tabRect使其覆盖范围适合放置标签页
tabRect.left += 10;
tabRect.right -= 1;
tabRect.top += 35;
tabRect.bottom -= 1;
tabRect.left += 0;
tabRect.right -= 0;
tabRect.top += 100;
tabRect.bottom -= 50;
// 根据调整好的tabRect放置m_A3Dlg子对话框并设置为显示
m_A3dlg.SetWindowPos(NULL, tabRect.left, tabRect.top, tabRect.Width(), tabRect.Height(), SWP_HIDEWINDOW);
@ -310,10 +310,10 @@ void CHuaGoCorrectDlg::RefreshTabChange()
// 获取标签控件客户区Rect并对其调整以适合放置标签页
m_tab.GetClientRect(&tabRect);
tabRect.left += 15;
tabRect.right += 20;
tabRect.top += 20;
tabRect.bottom -= 1;
tabRect.left += 0;
tabRect.right += 0;
tabRect.top += 25;
tabRect.bottom += 2;
switch (m_tab.GetCurSel())
{