From c4be61a7d75bfdcc83c33a218602f1fd45db3ffb Mon Sep 17 00:00:00 2001 From: zcy <290198252@qq.com> Date: Thu, 13 Jan 2022 23:28:29 +0800 Subject: [PATCH] no message --- examples/controls/controls_form.cpp | 1 + examples/proto_debuger/base_form.cpp | 15 ++++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/examples/controls/controls_form.cpp b/examples/controls/controls_form.cpp index f030922c..d5d15c9e 100644 --- a/examples/controls/controls_form.cpp +++ b/examples/controls/controls_form.cpp @@ -1,4 +1,5 @@ #include "stdafx.h" +#include "controls_form.h" #include "Utils\DpiManager.h" #include diff --git a/examples/proto_debuger/base_form.cpp b/examples/proto_debuger/base_form.cpp index ae86a683..23fb86ca 100644 --- a/examples/proto_debuger/base_form.cpp +++ b/examples/proto_debuger/base_form.cpp @@ -127,11 +127,13 @@ LRESULT BasicForm::HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam) TcpServerInfo* info = (TcpServerInfo*)wParam; TcpServerLibevent* server = (TcpServerLibevent*)lParam; ui::TreeNode* node = new ui::TreeNode; + + mMonitor->GetRootNode()->GetChildNode(2)->AddChildNode(node); auto key = info->ip + L":" + std::to_wstring(info->port); node->SetText(key); node->SetClass(L"listitem"); + node->SetFixedHeight(20); std::cout << "node heigjt" << node->GetHeight(); - mMonitor->GetRootNode()->GetChildNode(2)->AddChildNode(node); gTcpServerCnt++; printf("WM_ADD_TCPSERVER_MONITOR\r\n"); @@ -260,38 +262,41 @@ void BasicForm::InitWindow(){ node->SetText(nbase::StringPrintf(L"uart")); node->SetClass(L"list_topitem"); node->SetFixedHeight(30); + node->SetFont(L"arial_22"); mMonitor->GetRootNode()->AddChildNode(node); node = new ui::TreeNode; node->SetText(nbase::StringPrintf(L"tcp client")); node->SetClass(L"list_topitem"); + node->SetFont(L"arial_22"); node->SetFixedHeight(30); mMonitor->GetRootNode()->AddChildNode(node); node = new ui::TreeNode; node->SetText(nbase::StringPrintf(L"tcp server")); node->SetClass(L"list_topitem"); node->SetFixedHeight(30); - + node->SetFont(L"arial_22"); mMonitor->GetRootNode()->AddChildNode(node); node = new ui::TreeNode; node->SetText(nbase::StringPrintf(L"udp client")); node->SetClass(L"list_topitem"); node->SetFixedHeight(30); - + node->SetFont(L"arial_22"); mMonitor->GetRootNode()->AddChildNode(node); node = new ui::TreeNode; node->SetText(nbase::StringPrintf(L"udp server")); node->SetClass(L"list_topitem"); node->SetFixedHeight(30); - + node->SetFont(L"arial_22"); mMonitor->GetRootNode()->AddChildNode(node); node = new ui::TreeNode; node->SetText(nbase::StringPrintf(L"udp group")); node->SetClass(L"list_topitem"); - + node->SetFixedHeight(30); + node->SetFont(L"arial_22"); mMonitor->GetRootNode()->AddChildNode(node); }