refactor: 将应用程序名称提取为配置常量

- 在 config.h 中定义 APP_NAME 常量,提高可维护性
- 将 main.c 中的对话框标题硬编码替换为使用 APP_NAME
This commit is contained in:
2026-03-18 22:33:25 +08:00
parent 3ecf35963d
commit 1bbe95582a
3 changed files with 6 additions and 3 deletions
+3
View File
@@ -5,6 +5,9 @@
// UI的配置常量
// ============================================================================
// 应用程序名称
#define APP_NAME "PathEditor" // 应用程序名称
// 对话框设置
#define UI_DLG_SIZE "800x800" // 对话框默认大小 (像素)
#define UI_DLG_MINSIZE "800x800" // 对话框最小大小 (像素)