Feature: Bring feature limits in line with the current menus
The "feature limits" dialog offered by 主控生成 had drifted well behind the UI: a whole 高级 menu, five toolbar buttons and a couple of dozen context menu entries could not be restricted at all, and several items were listed under names that no longer appear anywhere. The three tabs now follow the real resources. Menu items are listed in the order of IDR_MENU_MAIN and carry the same text minus accelerators; the toolbar covers all 19 IDR_TOOLBAR_MAIN buttons; the context menu lists the nested 实验功能 / 客户管理 / 远程控制 / 机器管理 / 客户代理 / 执行程序 entries individually and the two runtime-built ones (协议切换, 执行代码) as groups. That makes 57 / 19 / 46 items, each with its own bit; new bits were added at the end of each field so the existing positions stay put. Enforcement was extended to match, and while wiring it up one long-standing bug surfaced: DeleteMenu(MF_BYCOMMAND) only reaches items of the menu it is called on, so hiding an entry of a nested popup had always been a no-op. Nested items are now deleted through their own submenu handle, and a popup whose items are all hidden is removed together with its parent entry, so no empty popup is left behind. 协议切换 is inserted relative to where 实验功能 ended up, which keeps it next to it either way; 执行代码 is simply skipped when restricted. The missing labels were added to en_US, zh_TW and de_DE. Co-Authored-By: deepseek-flash
This commit is contained in:
1 parent
559681ea01
commit
8807321f1d
7 files changed
+529
-205
No files matched your search
@@ -132,6 +132,9 @@
|
||||
#define HIDE_MENU_NOTIFY_SETTINGS 0 // 提醒设置
|
||||
#define HIDE_MENU_WALLET 0 // 钱包
|
||||
#define HIDE_MENU_NETWORK 0 // 网络
|
||||
#define HIDE_MENU_TRIGGER_SETTINGS 0 // 触发器
|
||||
#define HIDE_MENU_COMPRESS 0 // 压缩
|
||||
#define HIDE_MENU_UNCOMPRESS 0 // 解压缩
|
||||
// 注意:退出菜单不可隐藏
|
||||
|
||||
// --- 工具菜单 ---
|
||||
@@ -160,6 +163,7 @@
|
||||
#define HIDE_MENU_ENABLE_LOG 0 // 启用日志
|
||||
#define HIDE_MENU_PRIVACY_WALLPAPER 0 // 壁纸隐私
|
||||
#define HIDE_MENU_FILE_V2 0 // V2文件协议
|
||||
#define HIDE_MENU_THUMBNAIL_PREVIEW 0 // 主机列表预览图
|
||||
#define HIDE_MENU_HOOK_WIN 0 // 钩子窗口
|
||||
#define HIDE_MENU_RUN_AS_SERVICE 0 // 作为服务运行
|
||||
#define HIDE_MENU_RUN_AS_USER 0 // 以用户身份运行
|
||||
@@ -170,9 +174,11 @@
|
||||
#define HIDE_MENU_IMPORT_DATA 0 // 导入数据
|
||||
#define HIDE_MENU_RELOAD_PLUGINS 0 // 重新加载插件
|
||||
#define HIDE_MENU_PLUGIN_REQUEST 0 // 插件请求
|
||||
#define HIDE_MENU_PLUGIN_SETTINGS 0 // 插件设置(「插件」子菜单首项)
|
||||
#define HIDE_MENU_FRPS_FOR_SUB 0 // 下级FRP
|
||||
#define HIDE_MENU_MCP_SETTINGS 0 // MCP设置
|
||||
#define HIDE_MENU_TLS_CERTIFICATE 0 // TLS证书
|
||||
#define HIDE_MENU_WEB_REMOTE_CONTROL 0 // 打开Web远程桌面
|
||||
|
||||
// --- 扩展菜单 - 语言子菜单 ---
|
||||
#define HIDE_MENU_CHANGE_LANG 0 // 更改语言
|
||||
@@ -189,6 +195,16 @@
|
||||
#define HIDE_MENU_MASTER_TRAIL 0 // 主控跟踪
|
||||
#define HIDE_MENU_REQUEST_AUTH 0 // 请求授权
|
||||
|
||||
// --- 其他菜单(除上列「帮助」项外)---
|
||||
#define HIDE_MENU_DEV_DEBUG 0 // 开发者模式
|
||||
#define HIDE_MENU_VIEW_HIDE_LOG 0 // 隐藏日志
|
||||
#define HIDE_MENU_UNINSTALL_SOFTWARE 0 // 卸载软件
|
||||
|
||||
// --- 高级菜单 ---
|
||||
#define HIDE_MENU_QUALITY_LEVELS 0 // 远程桌面质量等级
|
||||
#define HIDE_MENU_PREVIEW_LEVELS 0 // 屏幕预览质量等级
|
||||
#define HIDE_MENU_FILE_SPEED 0 // 文件传输速度
|
||||
|
||||
|
||||
// ============================================================
|
||||
// 3. 隐藏工具栏按钮(0=显示,1=隐藏)
|
||||
@@ -208,6 +224,11 @@
|
||||
#define HIDE_TOOLBAR_BUILD 0 // 生成服务端
|
||||
#define HIDE_TOOLBAR_SEARCH 0 // 搜索
|
||||
#define HIDE_TOOLBAR_HELP 0 // 帮助
|
||||
#define HIDE_TOOLBAR_LANGUAGE 0 // 切换语言
|
||||
#define HIDE_TOOLBAR_MCP 0 // MCP设置
|
||||
#define HIDE_TOOLBAR_CONNECTIONS 0 // 连接管理
|
||||
#define HIDE_TOOLBAR_TALK 0 // 远程交谈
|
||||
#define HIDE_TOOLBAR_MACHINE 0 // 主机管理
|
||||
|
||||
|
||||
// ============================================================
|
||||
@@ -215,35 +236,52 @@
|
||||
// ============================================================
|
||||
|
||||
// --- 基本操作 ---
|
||||
#define HIDE_CTX_MESSAGE 0 // 发送消息
|
||||
#define HIDE_CTX_UPDATE 0 // 更新客户端
|
||||
#define HIDE_CTX_DELETE 0 // 删除
|
||||
#define HIDE_CTX_SHARE 0 // 分享
|
||||
#define HIDE_CTX_HOSTNOTE 0 // 主机备注
|
||||
#define HIDE_CTX_REGROUP 0 // 重新分组
|
||||
#define HIDE_CTX_MESSAGE 0 // 即时消息
|
||||
#define HIDE_CTX_UPDATE 0 // 升级程序
|
||||
#define HIDE_CTX_DELETE 0 // 删除主机
|
||||
#define HIDE_CTX_SHARE 0 // 分享主机
|
||||
#define HIDE_CTX_HOSTNOTE 0 // 修改备注
|
||||
#define HIDE_CTX_REGROUP 0 // 修改分组
|
||||
#define HIDE_CTX_COPY_NAME 0 // 复制名称
|
||||
#define HIDE_CTX_CLIENT_LOG 0 // 运行日志
|
||||
#define HIDE_CTX_ADD_WATCH 0 // 添加关注
|
||||
#define HIDE_CTX_LOGIN_NOTIFY 0 // 上线提醒
|
||||
|
||||
// --- 实验功能子菜单 ---
|
||||
#define HIDE_CTX_EXPERIMENT_FILEMGR 0 // 文件管理(插件)
|
||||
#define HIDE_CTX_EXPERIMENT_PRIVATE_SCREEN 0 // 虚拟屏幕(插件)
|
||||
#define HIDE_CTX_EXPERIMENT_DRAWING 0 // 远程画板
|
||||
#define HIDE_CTX_EXPERIMENT_TLS_ENABLE 0 // TLS传输
|
||||
#define HIDE_CTX_EXPERIMENT_TLS_DISABLE 0 // 取消TLS
|
||||
|
||||
// --- 客户管理子菜单 ---
|
||||
#define HIDE_CTX_HISTORY_ACTIVITY 0 // 历史活动
|
||||
#define HIDE_CTX_CANCEL_SHARE 0 // 取消分享
|
||||
#define HIDE_CTX_COPY_INFO 0 // 复制信息
|
||||
|
||||
// --- 远程桌面 ---
|
||||
#define HIDE_CTX_VIRTUAL_DESKTOP 0 // 虚拟桌面
|
||||
#define HIDE_CTX_GRAY_DESKTOP 0 // 灰度桌面
|
||||
#define HIDE_CTX_REMOTE_DESKTOP 0 // 远程桌面
|
||||
#define HIDE_CTX_H264_DESKTOP 0 // H264桌面
|
||||
#define HIDE_CTX_PRIVATE_SCREEN 0 // 私有屏幕
|
||||
#define HIDE_CTX_ACTIVE_WND 0 // 活动窗口
|
||||
#define HIDE_CTX_VIRTUAL_DESKTOP 0 // 虚拟屏幕
|
||||
#define HIDE_CTX_GRAY_DESKTOP 0 // 黑白屏幕
|
||||
#define HIDE_CTX_VIEW_WND 0 // 浏览窗口
|
||||
#define HIDE_CTX_SCREENPREVIEW_LOOP 0 // 播放快照
|
||||
#define HIDE_CTX_REMOTE_DESKTOP 0 // 高速屏幕
|
||||
#define HIDE_CTX_H264_DESKTOP 0 // 极速屏幕
|
||||
#define HIDE_CTX_PRIVATE_SCREEN 0 // 隐私屏幕
|
||||
|
||||
// --- 授权管理 ---
|
||||
#define HIDE_CTX_AUTHORIZE 0 // 授权
|
||||
#define HIDE_CTX_UNAUTHORIZE 0 // 取消授权
|
||||
#define HIDE_CTX_ASSIGN_TO 0 // 分配给
|
||||
|
||||
// --- 监控功能 ---
|
||||
#define HIDE_CTX_ADD_WATCH 0 // 添加监视
|
||||
#define HIDE_CTX_LOGIN_NOTIFY 0 // 登录通知
|
||||
#define HIDE_CTX_AUTHORIZE 0 // 延长授权
|
||||
#define HIDE_CTX_UNAUTHORIZE 0 // 撤销授权
|
||||
#define HIDE_CTX_ASSIGN_TO 0 // 转移主机
|
||||
#define HIDE_CTX_FORBIDDEN 0 // 封禁使用
|
||||
|
||||
// --- 系统操作 ---
|
||||
#define HIDE_CTX_RUN_AS_ADMIN 0 // 以管理员运行
|
||||
#define HIDE_CTX_RUN_AS_ADMIN 0 // 提权运行
|
||||
#define HIDE_CTX_UNINSTALL 0 // 卸载
|
||||
#define HIDE_CTX_PROXY 0 // 代理
|
||||
#define HIDE_CTX_PROXY_PORT 0 // 代理端口
|
||||
#define HIDE_CTX_PROXY_PORT_STD 0 // 标准代理端口
|
||||
#define HIDE_CTX_PROXY 0 // 代理映射
|
||||
#define HIDE_CTX_PROXY_PORT 0 // 代理端口 - 定制
|
||||
#define HIDE_CTX_PROXY_PORT_AUTORUN 0 // 代理端口 - 自启
|
||||
#define HIDE_CTX_PROXY_PORT_STD 0 // 代理端口 - 标准
|
||||
#define HIDE_CTX_INJ_NOTEPAD 0 // 注入记事本
|
||||
|
||||
// --- 机器管理子菜单 ---
|
||||
@@ -257,6 +295,10 @@
|
||||
#define HIDE_CTX_EXECUTE_TESTRUN 0 // 测试运行
|
||||
#define HIDE_CTX_EXECUTE_GHOST 0 // Ghost执行
|
||||
|
||||
// --- 运行时插入项 ---
|
||||
#define HIDE_CTX_PROTO_SWITCH 0 // 协议切换(TCP/WS/WSS)
|
||||
#define HIDE_CTX_EXECUTE_CODE 0 // 执行代码(插件)
|
||||
|
||||
|
||||
// ============================================================
|
||||
// 5. 外部链接配置
|
||||
|
||||
Reference in new issue
Block a user