From 6e9569f0f27eeadb24f1dfd808fa9d53a74a395f Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期四, 11 七月 2024 22:21:15 +0800 Subject: [PATCH] item --- jrj/project/total3/ViewExTotalWin.cpp | 27 +++++++++++++-------------- 1 files changed, 13 insertions(+), 14 deletions(-) diff --git a/jrj/project/total3/ViewTotalWin.cpp b/jrj/project/total3/ViewExTotalWin.cpp similarity index 93% rename from jrj/project/total3/ViewTotalWin.cpp rename to jrj/project/total3/ViewExTotalWin.cpp index a94ff6b..b2c2f14 100644 --- a/jrj/project/total3/ViewTotalWin.cpp +++ b/jrj/project/total3/ViewExTotalWin.cpp @@ -11,15 +11,14 @@ using xml = KXMLDOMDocument; -class __declspec(dllexport) ViewTotalWin : public xwin +class __declspec(dllexport) ViewExTotalWin : public xwin { public: - ViewTotalWin(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {} + ViewExTotalWin(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {} public: - static ViewTotalWin* CreateInstance(void* implPtr, void* hWnd) + static ViewExTotalWin* CreateInstance(void* implPtr, void* hWnd) { - ViewTotalWin* pWin = new ViewTotalWin(implPtr, (HWND)hWnd); - return pWin; + return new ViewExTotalWin(implPtr, (HWND)hWnd); } public: xdwgrid dw_list; @@ -137,7 +136,7 @@ if (argUrl != L"") { xaserverarg ar ; - ar.setNativePointer(ar.CreateInstance()); + //ar.setNativePointer(ar.CreateInstance()); ar.AddArg(L"argurl", argUrl); if (argStr != L"") ar.AddArg(L"arg", argStr); @@ -386,13 +385,13 @@ int OnAttachEvent() { //绑定工具条点击事件 - AttachEvent(L"WM_XCOMMAND", (FEvent)&ViewTotalWin::OnXCommand); + AttachEvent(L"WM_XCOMMAND", (FEvent)&ViewExTotalWin::OnXCommand); //获取焦点事件,用于重置工具条 - AttachEvent(L"WM_SETFOCUS", (FEvent)&ViewTotalWin::OnSetFocus); - AttachEvent(L"cb_report", L"CBN_SELCHANGE", (FEvent)&ViewTotalWin::OnCombboChanged); - AttachEvent(L"dw_report", L"DWV_CLICKED", (FEvent)&ViewTotalWin::OnDWClick); - AttachEvent(L"dw_report", L"DWV_ROWFOCUSCHANGED", (FEvent)&ViewTotalWin::OnRowChanged);//绑定行更改触发事件OnRowChanged - AttachEvent(L"dw_report", xstring(0x400 + 81), (FEvent)&ViewTotalWin::OnRetrieveFinished); + AttachEvent(L"WM_SETFOCUS", (FEvent)&ViewExTotalWin::OnSetFocus); + AttachEvent(L"cb_report", L"CBN_SELCHANGE", (FEvent)&ViewExTotalWin::OnCombboChanged); + AttachEvent(L"dw_report", L"DWV_CLICKED", (FEvent)&ViewExTotalWin::OnDWClick); + AttachEvent(L"dw_report", L"DWV_ROWFOCUSCHANGED", (FEvent)&ViewExTotalWin::OnRowChanged);//绑定行更改触发事件OnRowChanged + AttachEvent(L"dw_report", xstring(0x400 + 81), (FEvent)&ViewExTotalWin::OnRetrieveFinished); return 1; } @@ -401,7 +400,7 @@ { if (!rptEle) return 0; if (dataretrieveing) return -1; - dw_list.Reset(); + //dw_list.Reset(); xml x ; xaserverarg arg ; @@ -496,7 +495,7 @@ { KXMLDOMElement rpt = nlist.item(i); xstring name = rpt.getAttribute(L"name"); - xc.AddItem( name, rpt); + xc.AddItem( name, rpt.ptr()); if (i == 0) xc.SetText(name); if (i == 0) rptEle = rpt; } -- Gitblit v1.9.3