diff --git a/bin/PathEditor.exe b/bin/PathEditor.exe index 68488ea..63788cf 100644 Binary files a/bin/PathEditor.exe and b/bin/PathEditor.exe differ diff --git a/include/config.h b/include/config.h index 6ad2c7f..44fc7f1 100644 --- a/include/config.h +++ b/include/config.h @@ -5,6 +5,9 @@ // UI的配置常量 // ============================================================================ +// 应用程序名称 +#define APP_NAME "PathEditor" // 应用程序名称 + // 对话框设置 #define UI_DLG_SIZE "800x800" // 对话框默认大小 (像素) #define UI_DLG_MINSIZE "800x800" // 对话框最小大小 (像素) diff --git a/src/main.c b/src/main.c index 0a5930c..c613e30 100644 --- a/src/main.c +++ b/src/main.c @@ -90,9 +90,9 @@ int main(int argc, char **argv) // 创建对话框 dlg = IupDialog(vbox_all); - IupSetAttribute(dlg, "TITLE", "编辑环境变量 (IUP版)"); - IupSetAttribute(dlg, "RASTERSIZE", UI_DLG_SIZE); // 对话框初始大小 (像素) - IupSetAttribute(dlg, "MINSIZE", UI_DLG_MINSIZE); // 对话框最小大小 (像素) + IupSetAttribute(dlg, "TITLE", APP_NAME); // 对话框标题 + IupSetAttribute(dlg, "RASTERSIZE", UI_DLG_SIZE); // 对话框初始大小 (像素) + IupSetAttribute(dlg, "MINSIZE", UI_DLG_MINSIZE); // 对话框最小大小 (像素) IupSetAttribute(dlg, "MINBOX", "NO"); IupSetAttribute(dlg, "MAXBOX", "NO");