From 43398e405ea06974e06662b6137f2f8d8fd72160 Mon Sep 17 00:00:00 2001 From: yuanyuanxiang <962914132@qq.com> Date: Sat, 15 Aug 2026 13:24:32 +0200 Subject: [PATCH] Feature: Add icons to online host context menu items Add 16x16 icons for the three context-menu items that previously had none: "Activity History" (Client Management), "Browse Window" (Remote Control), and "Proxy Port - Auto Start" (Client Proxy). Register three new bitmap resources and extend the main dialog's bitmap array from 63 to 66 entries so each menu item renders an intuitive glyph. Co-Authored-By: deepseek-v4-pro --- server/2015Remote/2015Remote.rc | Bin 161158 -> 161676 bytes server/2015Remote/2015RemoteDlg.cpp | 6 ++++++ server/2015Remote/2015RemoteDlg.h | 2 +- server/2015Remote/res/Bitmap/BrowseWnd.bmp | Bin 0 -> 822 bytes .../2015Remote/res/Bitmap/HistoryActivity.bmp | Bin 0 -> 822 bytes .../2015Remote/res/Bitmap/PortProxyAuto.bmp | Bin 0 -> 822 bytes server/2015Remote/resource.h | 5 ++++- 7 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 server/2015Remote/res/Bitmap/BrowseWnd.bmp create mode 100644 server/2015Remote/res/Bitmap/HistoryActivity.bmp create mode 100644 server/2015Remote/res/Bitmap/PortProxyAuto.bmp diff --git a/server/2015Remote/2015Remote.rc b/server/2015Remote/2015Remote.rc index bcb6cb1487e31720686934abe01425fdfee3fbf8..14d69166f5d140f1084f02e59196f1f4beb97e6b 100644 GIT binary patch delta 183 zcmZpB&Drywv!R7?3)4P{>CeQNR0QK092uM$LKr+5!hkr0A#%E)I8(f&BSSJn2}34B z84#B+R5Iu>Br)VN6fh`F|H#55%@0!R$`H;F55#^9E|Wj0HRmBr6`o;Li}j5DC=j$Pfy&&z~U(Nc&B{$jlTzU4@THh~1H)6li7s Q^uYg&n%i$kFs+LL0Ib|A2mk;8 delta 24 gcmeBq&)N2xv!R7?3)4P{=?VWCrMBObVpInsertMenu(0, MF_BYPOSITION | MF_STRING, ID_ONLINE_HISTORY_ACTIVITY, _TR("历史活动")); + pClientMenu->SetMenuItemBitmaps(ID_ONLINE_HISTORY_ACTIVITY, MF_BYCOMMAND, &m_bmOnline[63], &m_bmOnline[63]); } // 创建一个新的子菜单 diff --git a/server/2015Remote/2015RemoteDlg.h b/server/2015Remote/2015RemoteDlg.h index 357b355..b2c7f66 100644 --- a/server/2015Remote/2015RemoteDlg.h +++ b/server/2015Remote/2015RemoteDlg.h @@ -390,7 +390,7 @@ public: bool IsDllRequestLimited(const std::string& ip); void RecordDllRequest(const std::string& ip); CMenu m_MainMenu; - CBitmap m_bmOnline[63]; + CBitmap m_bmOnline[66]; uint64_t m_superID; std::map m_RemoteWnds; FileTransformCmd m_CmdList; diff --git a/server/2015Remote/res/Bitmap/BrowseWnd.bmp b/server/2015Remote/res/Bitmap/BrowseWnd.bmp new file mode 100644 index 0000000000000000000000000000000000000000..33e1c12e3e451e2aad219f7e1e592078a33fbc7a GIT binary patch literal 822 zcmZ?rHDhJ~12Z700mK4O%*Y@C7H0s;3v)v-M1XunIzCfl~KYw4)*X>fy%1 q8Ti$s84l#)R}VK9&cLr8D2s{UdeIn|Dj_0h%HUj5)x$Ls!vFxUOlq9~ literal 0 HcmV?d00001 diff --git a/server/2015Remote/res/Bitmap/HistoryActivity.bmp b/server/2015Remote/res/Bitmap/HistoryActivity.bmp new file mode 100644 index 0000000000000000000000000000000000000000..8d0ee2bdb7774dd2a445d59c8f68527008a94f26 GIT binary patch literal 822 zcmZ?rHDhJ~12Z700mK4O%*Y@C7H0s;3v)v-M1X_9#AOtI#SmS{YLMA*Gtn5xYLM9wWfgXcKtVJFHvv;Uei8h#5M$BQki^9_0a-gT Z8}0=(EpRn(2AWDZ7pMRk!NtjD003PGj(7k7 literal 0 HcmV?d00001 diff --git a/server/2015Remote/res/Bitmap/PortProxyAuto.bmp b/server/2015Remote/res/Bitmap/PortProxyAuto.bmp new file mode 100644 index 0000000000000000000000000000000000000000..ef4007d6157f31129c3f01b49bee8c99ac8f3881 GIT binary patch literal 822 zcmZ?rHDhJ~12Z700mK4O%*Y@C7H0s;3v)v-M1X-g1~SN2uRHrS zTraYLXl#fYpkfGuYe8lpYXORT&9gv8$SNUhxU(S)WW_)>LG{R1U@8WRpqWo~^;j*% K>T;|qF$Dqc3wS#K literal 0 HcmV?d00001 diff --git a/server/2015Remote/resource.h b/server/2015Remote/resource.h index 4a97fca..407c1ee 100644 --- a/server/2015Remote/resource.h +++ b/server/2015Remote/resource.h @@ -277,6 +277,9 @@ #define IDB_BITMAP_CLIENTLOG 395 #define IDI_CLIENTLOG 396 #define IDB_BITMAP_FORBIDDEN 397 +#define IDB_BITMAP_HISTORY_ACTIVITY 398 +#define IDB_BITMAP_VIEW_WND 399 +#define IDB_BITMAP_PROXY_AUTORUN 400 #define IDC_MESSAGE 1000 #define IDC_ONLINE 1001 #define IDC_STATIC_TIPS 1002 @@ -1035,7 +1038,7 @@ // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 398 +#define _APS_NEXT_RESOURCE_VALUE 401 #define _APS_NEXT_COMMAND_VALUE 33083 #define _APS_NEXT_CONTROL_VALUE 2542 #define _APS_NEXT_SYMED_VALUE 105