修复界面BUG

This commit is contained in:
gb 2022-11-10 14:17:17 +08:00
parent 750d94beb8
commit dcb8c359a2
2 changed files with 5 additions and 0 deletions

View File

@ -7439,6 +7439,7 @@ void ChgjsonDlg::OnCbnSelchangeDependItem()
logic_.ResetContent();
logic_.AddString(L"==");
logic_.AddString(L"!=");
GetDlgItem(IDC_COMBO_BOOL)->ShowWindow(SW_SHOW);
if (hg_items_[d_ind].type == L"bool")
{
GetDlgItem(IDC_COMBO_BOOL)->ShowWindow(SW_SHOW);
@ -7475,6 +7476,7 @@ void ChgjsonDlg::OnCbnSelchangeDependItem()
logic_.AddString(L"out of");
}
GetDlgItem(IDC_EDIT_LOWER)->ShowWindow(SW_SHOW);
GetDlgItem(IDC_COMBO_BOOL)->ShowWindow(SW_HIDE);
}
logic_.SetCurSel(0);
OnCbnSelchangeLogic();
@ -7488,12 +7490,15 @@ void ChgjsonDlg::OnCbnSelchangeLogic()
GetDlgItem(IDC_STATIC_AND)->ShowWindow(SW_HIDE);
GetDlgItem(IDC_EDIT_UPPER)->ShowWindow(SW_HIDE);
GetDlgItem(IDC_EDIT_UPPER)->EnableWindow(FALSE);
::GetWindowTextW(logic_.m_hWnd, text, _countof(text) - 1);
if (wcscmp(text, L"between") == 0 || wcscmp(text, L"out of") == 0)
{
GetDlgItem(IDC_STATIC_AND)->ShowWindow(SW_SHOW);
GetDlgItem(IDC_EDIT_UPPER)->ShowWindow(SW_SHOW);
GetDlgItem(IDC_EDIT_UPPER)->EnableWindow();
GetDlgItem(IDC_STATIC_AND)->EnableWindow();
}
}

Binary file not shown.