| | |
| | | SetDlgItemText(IDC_LABEL_RUNTIME, pszText); |
| | | } |
| | | |
| | | void CMyStatusbar::setJobText(const char* pszText) |
| | | { |
| | | SetDlgItemText(IDC_LABEL_JOBSTATE, pszText); |
| | | } |
| | | |
| | | void CMyStatusbar::setCurTaskBtnText(const char* pszText) |
| | | { |
| | | SetDlgItemText(IDC_BUTTON_ROBOTTASK, pszText); |
| | |
| | | pItem->GetClientRect(rcItem); |
| | | pItem->MoveWindow(x, (rcClient.Height() - rcItem.Height()) / 2, rcItem.Width(), rcItem.Height()); |
| | | x += rcItem.Width(); |
| | | |
| | | x += 8; |
| | | pItem = GetDlgItem(IDC_LABEL_JOBSTATE); |
| | | if (pItem != nullptr) { |
| | | pItem->GetClientRect(rcItem); |
| | | pItem->MoveWindow(x, (rcClient.Height() - rcItem.Height()) / 2, rcItem.Width(), rcItem.Height()); |
| | | x += rcItem.Width(); |
| | | } |
| | | } |