From e4a2713ef8edbfb8a975f23f904d4d3c898d2630 Mon Sep 17 00:00:00 2001 From: LHY0125 <3364451258@qq.com> Date: Mon, 16 Mar 2026 17:33:29 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E4=BA=A7=E7=89=A9=E5=92=8CIDE=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=88=B0.gitignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 忽略obj/和dist/目录中的构建产物 - 添加Visual Studio Code的C/C++配置、调试和设置文件 - 添加编译生成的二进制文件(PathEditor.exe, Gobang_*_Setup.exe)和对象文件(*.o) --- .gitignore | 8 +++++++- src/main.c | 10 ++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index a64ed28..8c7c222 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,10 @@ *.tmp *.bak Thumbs.db -Desktop.ini \ No newline at end of file +Desktop.ini + +# 忽略obj目录 +/obj/ + +# 忽略dist目录 +/dist/ diff --git a/src/main.c b/src/main.c index 120350d..22a4292 100644 --- a/src/main.c +++ b/src/main.c @@ -36,11 +36,13 @@ int main(int argc, char **argv) IupSetGlobal("UTF8MODE", "YES"); // 创建列表控件 - list_path = IupList(NULL); + list_path = IupFlatList(); IupSetAttribute(list_path, "EXPAND", "YES"); - IupSetAttribute(list_path, "VISIBLELINES", "15"); - IupSetAttribute(list_path, "MULTIPLE", "NO"); - + IupSetAttribute(list_path, "HLINE", "YES"); + IupSetAttribute(list_path, "HLINECOLOR", "200 200 200"); + IupSetAttribute(list_path, "ITEMPADDING", "5x5"); + // IupFlatList 不支持 VISIBLELINES,高度由 EXPAND 和布局决定 + // 创建右侧按钮 btn_new = IupButton("新建(N)", NULL); btn_edit = IupButton("编辑(E)", NULL);