From b015137b1adc8949576fefdf055ba058b7ca22fc Mon Sep 17 00:00:00 2001
From: LiFan <2308045698@qq.com>
Date: 星期一, 09 九月 2024 17:15:08 +0800
Subject: [PATCH] update
---
jrj/project/business/GDN3.list.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/jrj/project/business/GDN3.list.cpp b/jrj/project/business/GDN3.list.cpp
index ea3b01e..9b60889 100644
--- a/jrj/project/business/GDN3.list.cpp
+++ b/jrj/project/business/GDN3.list.cpp
@@ -578,8 +578,9 @@
int OnSelectDataShowDdlb(TEvent* evt, LPARAM p)
{
+ HWND wid = cbx_datashow.GetHWND();
int CB_GETCURSEL = 0x0147;
- int nIndex = SendMessageW(HWND(), CB_GETCURSEL, 0, 0);
+ int nIndex = SendMessageW(wid, CB_GETCURSEL, 0, 0);
KXMLDOMElement e = cbx_datashow.GetElement();
KXMLDOMElement e2 = e.selectSingleNode(L"item[" + xstring(nIndex + 1) + L"]");
rows = e2.selectSingleNode(L"@rows").text();
@@ -589,6 +590,7 @@
}
+
int PostOnAttachEvent()
{
AttachEvent(L"tv_folder", L"TVN_SELCHANGED", (FEvent)&ListGDN3Win::OnTreeSelChanged); //树选择
--
Gitblit v1.9.3