Feature: add tooltips to the password input dialog

The passcode input dialog now explains every control the operator can
use on hover, using the same MFC built-in tooltip mechanism as the
generate-passcode dialog (EnableToolTips + OnToolHitTest + TTN_NEEDTEXT,
with the max tip width applied when the tip is requested).

The passcode tip carries the main point: the value must match the
current serial and binding mode, and a passcode that was tampered with,
cracked or forged is invalid. The OK tip says the authorization check
verifies the passcode after saving rather than claiming the dialog
checks it. The checksum tip reflects that V2 verifies the passcode
signature while V1 checks the passcode itself, and the root-credential
tip notes that clearing the box does not delete the stored credential.

While here, the TTN_NEEDTEXT handlers keep idFrom in UINT_PTR: on x64
the old UINT intermediate could truncate a control HWND. The same fix
is applied to the generate-passcode dialog.

All 6 texts are translated in the en_US, de_DE and zh_TW packs.

Co-Authored-By: deepseek-flash
This commit is contained in:
yuanyuanxianganddeepseek-flash committed 2026-12-06 22:39:08 +01:00
1 parent f22bd574ea
commit 2b26f22d27
5 files changed
+119 -3

No files matched your search

+8
View File
@@ -2405,3 +2405,11 @@ MCP
自动查找并填入下一个可用的 FRP 远程端口。\n保存授权时才会真正记录端口占用。=自動尋找並填入下一個可用的 FRP 遠端連接埠。\n儲存授權時才會真正記錄連接埠佔用。
按当前参数生成口令。\n【重点】必须满足 V1 密码正确或 V2 私钥合法,\n否则生成的口令无效;篡改密码、伪造私钥或\n手工拼接得到的结果,客户端验证都会失败。=按目前參數產生口令。\n【重點】必須滿足 V1 密碼正確或 V2 私鑰合法,\n否則產生的口令無效;竄改密碼、偽造私鑰或\n手動拼接得到的結果,用戶端驗證都會失敗。
把生成的口令/HMAC/根凭证保存到 licenses.ini,\n并可导出 .lic 文件。只有成功生成口令后才可用;\n本机给自己授权时会自动保存。=將產生的口令/HMAC/根憑證儲存到 licenses.ini,\n並可匯出 .lic 檔案。只有成功產生口令後才可用;\n本機給自己授權時會自動儲存。
; Password input dialog tooltips (CPasswordDlg)
选择授权绑定的对象:\n选硬件方式时绑定本机硬件;\n选主控地址方式时绑定当前公网地址。\n切换后序列号会自动重算,与新序列号不匹配的旧口令随之失效。=選擇授權綁定的對象:\n選硬體方式時綁定本機硬體;\n選主控位址方式時綁定目前公網位址。\n切換後序號會自動重算,與新序號不符的舊口令將隨之失效。
按「授权方式」自动计算的设备序列号(只读)。\n口令只对这个序列号有效;序列号与授权方式不一致时\n无法通过校验。=依「授權方式」自動計算的裝置序號(唯讀)。\n口令只對這個序號有效;序號與授權方式不一致時\n無法通過校驗。
粘贴管理员签发的授权口令(必填)。\n【重点】口令必须与当前序列号、授权方式匹配;\n自行篡改、破解或伪造的口令均无效,\n校验不通过将无法通过授权检查。=貼上管理員簽發的授權口令(必填)。\n【重點】口令必須與目前序號、授權方式相符;\n自行竄改、破解或偽造的口令均無效,\n校驗不通過將無法通過授權檢查。
口令对应的验证码/签名(V2 模式下必填,以 v2: 开头)。\nV2 用它校验口令签名,必须与口令、序列号一起由管理员签发;\nV1 模式下由口令本身完成校验。=口令對應的驗證碼/簽名(V2 模式必填,以 v2: 開頭)。\nV2 用它校驗口令簽名,必須與口令、序號一起由管理員簽發;\nV1 模式下由口令本身完成校驗。
可选的上级授权凭证,用于多层授权。\n由上级管理员提供;普通单层授权可留空。\n填写错误不影响本机口令校验,但下发给下级的授权会无效;\n清空输入框不会删除已保存的凭证。=可選的上級授權憑證,用於多層授權。\n由上級管理員提供;一般單層授權可留空。\n填寫錯誤不影響本機口令校驗,但下發給下級的授權會無效;\n清空輸入框不會刪除已儲存的憑證。
保存序列号、授权口令和验证码。\n【重点】保存后由授权检查验证口令,\n篡改、破解或伪造的口令一律无效;\n请勿手工拼接口令。=儲存序號、授權口令和驗證碼。\n【重點】儲存後由授權檢查驗證口令,\n竄改、破解或偽造的口令一律無效;\n請勿手動拼接口令。