diff --git a/bin/PathEditor.exe b/bin/PathEditor.exe index 63788cf..0fc001c 100644 Binary files a/bin/PathEditor.exe and b/bin/PathEditor.exe differ diff --git a/include/config.h b/include/config.h index 44fc7f1..e3c9810 100644 --- a/include/config.h +++ b/include/config.h @@ -6,7 +6,8 @@ // ============================================================================ // 应用程序名称 -#define APP_NAME "PathEditor" // 应用程序名称 +#define APP_NAME "PathEditor" // 编辑环境变量应用程序名称 +#define APP_NAME_READONLY "PathEditor (只读模式)" // 编辑环境变量只读模式标题 // 对话框设置 #define UI_DLG_SIZE "800x800" // 对话框默认大小 (像素) diff --git a/src/main.c b/src/main.c index c613e30..80d0ab3 100644 --- a/src/main.c +++ b/src/main.c @@ -100,7 +100,7 @@ int main(int argc, char **argv) if (!check_admin()) { IupMessage("警告", "程序未以管理员身份运行,您只能查看,无法保存更改!"); - IupSetAttribute(dlg, "TITLE", "编辑环境变量 (只读模式)"); + IupSetAttribute(dlg, "TITLE", APP_NAME_READONLY); // 对话框标题 (只读模式) IupSetAttribute(lbl_status, "TITLE", "状态: 只读模式 (权限不足)"); // 禁用修改类按钮