From 3c2935ab1cb1fc0de54ab8ba388b85ce93fffcf6 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期一, 08 七月 2024 18:06:01 +0800
Subject: [PATCH] update total
---
jrj/project/vindexmenu.cpp | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/jrj/project/vindexmenu.cpp b/jrj/project/vindexmenu.cpp
index 6945e29..612ff34 100644
--- a/jrj/project/vindexmenu.cpp
+++ b/jrj/project/vindexmenu.cpp
@@ -35,8 +35,7 @@
public:
static vindexmenu* CreateInstance(void* implPtr, void* hWnd)
{
- vindexmenu* pWin = new vindexmenu(implPtr, (HWND)hWnd);
- return pWin;
+ return new vindexmenu(implPtr, (HWND)hWnd);
}
int OnHideWin()
@@ -188,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)
--
Gitblit v1.9.3