From 1740c5de8324b8214829429c138e619df1fb9d02 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期四, 18 七月 2024 13:17:14 +0800
Subject: [PATCH] update basecode

---
 jrj/project/vindexmenu.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/jrj/project/vindexmenu.cpp b/jrj/project/vindexmenu.cpp
index 0a54c11..8da9fdb 100644
--- a/jrj/project/vindexmenu.cpp
+++ b/jrj/project/vindexmenu.cpp
@@ -187,10 +187,10 @@
 		int TPM_RIGHTBUTTON = 0x0002;
 		int TPM_RETURNCMD = 0x0100;
 		AppendMenuW(m,MF_STRING, 1, str);	
-		xrect xr = { 0,0,0,0 };
+		RECT xr = { 0,0,0,0 };
 		xpoint pt;
 		GetCursorPos(pt);				
-		return TrackPopupMenu (m, TPM_RIGHTBUTTON | TPM_RETURNCMD, pt.x, pt.y, 0, this->GetHandle(), xr);
+		return TrackPopupMenu (m, TPM_RIGHTBUTTON | TPM_RETURNCMD, pt.x, pt.y, 0, this->GetHandle(), &xr);
 	}			
 			
 	int OnRClicked(TEvent* evt,int p)
@@ -308,7 +308,7 @@
 			{
 				LPARAM pa = cbx_panelName.GetItemData(i);
 				if (!pa)return 1;
-				KXMLDOMElement& hData = *(KXMLDOMElement*)pa;
+				KXMLDOMElement hData = pa;
 				string Name= hData.selectSingleNode(L"name").text();
 				string Image = L"15";
 				if(hData.selectSingleNode(L"image")) Image=hData.selectSingleNode(L"image").text();

--
Gitblit v1.9.3