From a24a99da3f57ca960e0bde4df1cb4799e6254b30 Mon Sep 17 00:00:00 2001 From: LiFan <2308045698@qq.com> Date: 星期二, 16 七月 2024 12:36:30 +0800 Subject: [PATCH] update --- jrj/project/business/Public/search.dialog.cpp | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/jrj/project/business/Public/search.dialog.cpp b/jrj/project/business/Public/search.dialog.cpp index 209908a..726bcd2 100644 --- a/jrj/project/business/Public/search.dialog.cpp +++ b/jrj/project/business/Public/search.dialog.cpp @@ -13,7 +13,7 @@ xcontrol sle_1; public: - SearchDlg(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {} + SearchDlg(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd), sle_1(0){} public: static SearchDlg* CreateInstance(void* implPtr, void* hWnd) { @@ -54,7 +54,7 @@ if (GetWinParam()) { xaserverarg arg = GetArg(); - arg.AddArg(L"text", GetControl(L"sl_search").GetText()); + arg.AddArg(L"text", xcontrol(GetControl(L"sl_search")).GetText()); CloseWindow(); } return 1; @@ -89,6 +89,7 @@ int onload() { + SetArg(); sle_1 = GetControl(L"sl_search"); int x = GetWindowLong(GetHWND(), -16); //GWL_STYLE x = x + 0x0008; @@ -98,7 +99,7 @@ if (GetWinParam()) { xaserverarg arg = GetArg(); - GetControl(L"sl_search").SetText(arg.GetArgString(L"text")); + xcontrol(GetControl(L"sl_search")).SetText(arg.GetArgString(L"text")); } return 1; -- Gitblit v1.9.3