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/total3/viewex.total.cpp | 21 ++++++++++-----------
1 files changed, 10 insertions(+), 11 deletions(-)
diff --git a/jrj/project/total3/viewex.total.cpp b/jrj/project/total3/viewex.total.cpp
index 57e3bd0..7fddd3b 100644
--- a/jrj/project/total3/viewex.total.cpp
+++ b/jrj/project/total3/viewex.total.cpp
@@ -10,15 +10,14 @@
using xml = KXMLDOMDocument;
- class ViewEx111TotalWin : public xwin
+ class __declspec(dllexport) ViewExTotalWin : public xwin
{
public:
- ViewEx111TotalWin(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {}
+ ViewExTotalWin(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {}
public:
- static ViewEx111TotalWin* CreateInstance(void* implPtr, void* hWnd)
+ static ViewExTotalWin* CreateInstance(void* implPtr, void* hWnd)
{
- ViewEx111TotalWin* pWin = new ViewEx111TotalWin(implPtr, (HWND)hWnd);
- return pWin;
+ return new ViewExTotalWin(implPtr, (HWND)hWnd);
}
public:
xdwgrid dw_list;
@@ -77,7 +76,7 @@
xaserverarg arg ;
arg.AddArg(L"html", str);
-
+ arg.SetParam(L"obj", (LPARAM)&dw_list);
OpenWindow(L"dev:xpage[data.vanalysis.vx]", arg);
xutil::RestoreCursor(hCursor);
return 1;
@@ -270,11 +269,11 @@
int OnAttachEvent()
{
//绑定工具条点击事件
- AttachEvent(L"WM_XCOMMAND", (FEvent)&ViewEx111TotalWin::OnXCommand);
+ AttachEvent(L"WM_XCOMMAND", (FEvent)&ViewExTotalWin::OnXCommand);
//获取焦点事件,用于重置工具条
- AttachEvent(L"WM_SETFOCUS", (FEvent)&ViewEx111TotalWin::OnSetFocus);
- AttachEvent(L"cb_report", L"CBN_SELCHANGE", (FEvent)&ViewEx111TotalWin::OnCombboChanged);
- AttachEvent(L"dw_report", L"DWV_CLICKED", (FEvent)&ViewEx111TotalWin::OnDWClick);
+ 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);
return 1;
}
@@ -365,7 +364,7 @@
{
KXMLDOMElement rpt = nlist.item(i);
xstring name = rpt.getAttribute(L"name");
-
+ xc.AddItem(name, rpt);
if (i == 0) xc.SetText(name);
if (i == 0) rptEle = rpt;
}
--
Gitblit v1.9.3