From da2dab05bfc057f9a31599710cf52fc523092055 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期三, 26 六月 2024 15:21:37 +0800
Subject: [PATCH] update arg
---
jrj/project/vindexmenu.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/jrj/project/vindexmenu.cpp b/jrj/project/vindexmenu.cpp
index 6e711c9..0f135ac 100644
--- a/jrj/project/vindexmenu.cpp
+++ b/jrj/project/vindexmenu.cpp
@@ -458,9 +458,9 @@
int OnInitial()
{
- if(GetParam())
+ if(GetWinParam())
{
- xaserverarg& arg = *(xaserverarg*)GetParam();
+ xaserverarg arg = GetArg();
m_nHwnd = (HWND)arg.GetParam(L"hwnd");
cbx_menu = (void*)arg.GetParam(L"memuId");
cbx_tab = (void*)arg.GetParam(L"tabNo");
@@ -475,6 +475,8 @@
int onload()
{
+ SetArg();
+
m_bCanDestroy = 1;
tv_menu1 = GetControl(L"menu1");
--
Gitblit v1.9.3