1
0
mirror of https://github.com/solemnwarning/ipxwrapper synced 2024-12-30 16:45:37 +01:00

Set NIC list column width correctly.

This commit is contained in:
Daniel Collins 2011-08-06 15:19:52 +00:00
parent 81e05cfb62
commit 12a1004429

View File

@ -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);