| | |
| | | } |
| | | } |
| | | } |
| | | else if (RX_CODE_SELECT_STEP == code) { |
| | | SERVO::CStep* pStep = nullptr; |
| | | if (pAny->getPtrValue("ptr", (void*&)pStep)) { |
| | | ASSERT(pStep); |
| | | ASSERT(m_pPanelAttributes); |
| | | m_pPanelAttributes->loadDataFromStep(pStep); |
| | | } |
| | | } |
| | | |
| | | pAny->release(); |
| | | }, [&]() -> void { |
| | | // onComplete |
| | |
| | | m_pPanelMaster = new CPanelMaster(); |
| | | m_pPanelMaster->Create(IDD_PANEL_MASTER, this); |
| | | m_pPanelMaster->ShowWindow(SW_SHOW); |
| | | m_pPanelAttributes = new CPanelAttributes(); |
| | | m_pPanelAttributes->Create(IDD_PANEL_ATTRIBUTES, this); |
| | | m_pPanelAttributes->ShowWindow(SW_SHOW); |
| | | |
| | | |
| | | |
| | | // 调整初始窗口位置 |
| | |
| | | m_pPanelMaster = nullptr; |
| | | } |
| | | |
| | | if (m_pPanelAttributes != nullptr) { |
| | | m_pPanelAttributes->DestroyWindow(); |
| | | delete m_pPanelAttributes; |
| | | m_pPanelAttributes = nullptr; |
| | | } |
| | | |
| | | if (m_hbrBkgnd != nullptr) { |
| | | ::DeleteObject(m_hbrBkgnd); |
| | | } |
| | |
| | | x += nPanelWidth; |
| | | } |
| | | |
| | | if (m_pPanelAttributes != nullptr) { |
| | | nPanelWidth = m_pPanelAttributes->getPanelWidth(); |
| | | m_pPanelAttributes->MoveWindow(x, y, nPanelWidth, rcClient.Height()); |
| | | x += nPanelWidth; |
| | | } |
| | | |
| | | pItem = GetDlgItem(IDC_SERVO_GRAPH1); |
| | | pItem->GetClientRect(&rcItem); |