From 12a1004429d4f29647769a70229faa02bd3c71d4 Mon Sep 17 00:00:00 2001 From: Daniel Collins Date: Sat, 6 Aug 2011 15:19:52 +0000 Subject: [PATCH] Set NIC list column width correctly. --- src/ipxconfig.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ipxconfig.cpp b/src/ipxconfig.cpp index c34ad06..c5f588a 100644 --- a/src/ipxconfig.cpp +++ b/src/ipxconfig.cpp @@ -570,9 +570,8 @@ static void init_windows() { //ListView_SetExtendedListViewStyle(windows.nic_list, LVS_EX_FULLROWSELECT); LVCOLUMN lvc; - lvc.mask = LVCF_FMT | LVCF_WIDTH; + lvc.mask = LVCF_FMT; lvc.fmt = LVCFMT_LEFT; - lvc.cx = 500; ListView_InsertColumn(windows.nic_list, 0, &lvc); @@ -591,6 +590,8 @@ static void init_windows() { lvi.iItem++; } + ListView_SetColumnWidth(windows.nic_list, 0, LVSCW_AUTOSIZE); + windows.nic_enabled = create_child(windows.nic_group, 0, 0, 0, 0, "BUTTON", "Enable interface", BS_AUTOCHECKBOX | WS_TABSTOP, 0, ID_NIC_ENABLED); windows.nic_net_lbl = create_child(windows.nic_group, 0, 0, 0, 0, "STATIC", "Network number", SS_RIGHT);