| | |
| | | if (GetDlgItem(IDC_LINE1) == nullptr) return; |
| | | |
| | | CWnd* pItem; |
| | | CRect rcClient; |
| | | CRect rcClient, rcItem; |
| | | |
| | | GetClientRect(&rcClient); |
| | | pItem = GetDlgItem(IDC_LINE1); |
| | | pItem->MoveWindow(rcClient.right - 3, 0, 3, rcClient.Height()); |
| | | |
| | | pItem = GetDlgItem(IDC_LABEL_LOADING); |
| | | pItem->GetWindowRect(&rcItem); |
| | | pItem->MoveWindow(12, (rcClient.Height() - rcItem.Height()) / 2, rcClient.Width() - 24, rcItem.Height()); |
| | | |
| | | m_treeCtrl.MoveWindow(5, 5, rcClient.Width() - 13, rcClient.Height() - 10); |
| | | } |
| | |
| | | { |
| | | if (1 == nIDEvent) { |
| | | KillTimer(1); |
| | | GetDlgItem(IDC_LABEL_LOADING)->ShowWindow(SW_HIDE); |
| | | m_treeCtrl.ShowWindow(SW_SHOW); |
| | | loadEquipmentList(); |
| | | } |
| | | |