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 | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/jrj/project/business/GDN3.list.cpp b/jrj/project/business/GDN3.list.cpp index 18475f1..9b60889 100644 --- a/jrj/project/business/GDN3.list.cpp +++ b/jrj/project/business/GDN3.list.cpp @@ -154,7 +154,7 @@ return 1; } - int ViewUpdate(int pr, xstring updateItem, xaserverarg arg) + int ViewUpdate(LPARAM pr, xstring updateItem, xaserverarg arg) { if (updateItem == L"del") { @@ -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