no message
This commit is contained in:
parent
b29109ba6b
commit
d448eb3a26
@ -182,7 +182,7 @@ LRESULT BasicForm::HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
node->SetText(pdata);
|
node->SetText(pdata);
|
||||||
node->SetClass(L"listitem");
|
node->SetClass(L"listitem");
|
||||||
|
|
||||||
mMonitor->GetRootNode()->GetChildNode(0)->AddChildNode(node);
|
mMonitor->GetRootNode()->GetChildNode(3)->AddChildNode(node);
|
||||||
return WindowImplBase::HandleMessage(uMsg, wParam, lParam);
|
return WindowImplBase::HandleMessage(uMsg, wParam, lParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -181,7 +181,7 @@ void NewMonitorForm::InitWindow()
|
|||||||
TcpServerInfo* p = new TcpServerInfo;
|
TcpServerInfo* p = new TcpServerInfo;
|
||||||
p->ip = m_ip_select->GetText();
|
p->ip = m_ip_select->GetText();
|
||||||
p->port = port;
|
p->port = port;
|
||||||
p->socket_fd = m_tcp_server->SocketFd();
|
p->socket_fd = udp->SocketFD();
|
||||||
printf("¿ªÆô·þÎñ¶Ë %d \r\n", p->socket_fd);
|
printf("¿ªÆô·þÎñ¶Ë %d \r\n", p->socket_fd);
|
||||||
|
|
||||||
auto succ = ::PostMessage(m_parent->GetHWND(),
|
auto succ = ::PostMessage(m_parent->GetHWND(),
|
||||||
@ -312,10 +312,9 @@ void NewMonitorForm::InitWindow()
|
|||||||
element->SetText(nbase::StringPrintf(L"%s", baus.c_str()));
|
element->SetText(nbase::StringPrintf(L"%s", baus.c_str()));
|
||||||
this->m_uart_baurate_select->Add(element);
|
this->m_uart_baurate_select->Add(element);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if ((text == L"tcp client")|| (text == L"tcp server") ||
|
if ((text == L"tcp client")|| (text == L"tcp server") ||
|
||||||
(text == L"udp client") || (text == L"udp server")) {
|
(text == L"udp") || (text == L"udp group")) {
|
||||||
this->m_ip_config_vbox->SetVisible(true);
|
this->m_ip_config_vbox->SetVisible(true);
|
||||||
this->m_uart_config_vbox->SetVisible(false);
|
this->m_uart_config_vbox->SetVisible(false);
|
||||||
|
|
||||||
@ -330,5 +329,6 @@ void NewMonitorForm::InitWindow()
|
|||||||
|
|
||||||
LRESULT NewMonitorForm::OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
LRESULT NewMonitorForm::OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
||||||
{
|
{
|
||||||
|
|
||||||
return __super::OnClose(uMsg, wParam, lParam, bHandled);
|
return __super::OnClose(uMsg, wParam, lParam, bHandled);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user