diff --git a/Makefile b/Makefile index da3ba87..a8bc6c6 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ BIN_DIR = bin # -mwindows: Create GUI app (no console) # -DUNICODE -D_UNICODE: Use Wide Character API CFLAGS = -Wall -O2 -I$(INCLUDE_DIR) -I$(LOCAL_INCLUDE_DIR) -D_WIN32 -DUNICODE -D_UNICODE -fexec-charset=UTF-8 -LDFLAGS = -L$(LIB_DIR) -liup -lgdi32 -lcomdlg32 -lcomctl32 -luuid -lole32 -ladvapi32 -mwindows +LDFLAGS = -L$(LIB_DIR) -liup -liupcd -lgdi32 -lcomdlg32 -lcomctl32 -luuid -lole32 -ladvapi32 -mwindows # Source SRC = src/main.c src/utils.c src/registry.c src/callbacks.c diff --git a/src/main.c b/src/main.c index 22a4292..44d476a 100644 --- a/src/main.c +++ b/src/main.c @@ -39,10 +39,13 @@ int main(int argc, char **argv) list_path = IupFlatList(); IupSetAttribute(list_path, "EXPAND", "YES"); IupSetAttribute(list_path, "HLINE", "YES"); - IupSetAttribute(list_path, "HLINECOLOR", "200 200 200"); + IupSetAttribute(list_path, "HLINECOLOR", "100 100 100"); // 灰色 IupSetAttribute(list_path, "ITEMPADDING", "5x5"); + IupSetAttribute(list_path, "BACKCOLOR", "255 255 255"); + IupSetAttribute(list_path, "BORDER", "YES"); + IupSetAttribute(list_path, "CANFOCUS", "YES"); // IupFlatList 不支持 VISIBLELINES,高度由 EXPAND 和布局决定 - + // 创建右侧按钮 btn_new = IupButton("新建(N)", NULL); btn_edit = IupButton("编辑(E)", NULL);