VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-08-29 00:28:07 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-08-31 00:30:53 +0200
commit2f2cb6b7aef0bc297269916c47149faee08a968f (patch)
tree0d3a324d22ddebbbfe4890267fa84bbfab5c3998 /src
parent8dc1dd2fb44216d964abf47f8e5b3181b18c42f1 (diff)
downloadVeraCrypt-2f2cb6b7aef0bc297269916c47149faee08a968f.tar.gz
VeraCrypt-2f2cb6b7aef0bc297269916c47149faee08a968f.zip
Windows: compact columns size of view reports used in Benchmark and Devices dialogs
Diffstat (limited to 'src')
-rw-r--r--src/Common/Dlgcode.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index 4f15447a..6d7aa0d4 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -3225,6 +3225,11 @@ BOOL CALLBACK RawDevicesDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l
item.iItem = line++;
}
+ SendMessageW(hList, LVM_SETCOLUMNWIDTH, 0, MAKELPARAM(LVSCW_AUTOSIZE_USEHEADER, 0));
+ SendMessageW(hList, LVM_SETCOLUMNWIDTH, 1, MAKELPARAM(LVSCW_AUTOSIZE_USEHEADER, 0));
+ SendMessageW(hList, LVM_SETCOLUMNWIDTH, 2, MAKELPARAM(LVSCW_AUTOSIZE_USEHEADER, 0));
+ SendMessageW(hList, LVM_SETCOLUMNWIDTH, 3, MAKELPARAM(LVSCW_AUTOSIZE_USEHEADER, 0));
+
lpszFileName = pDlgParam->pszFileName;
#ifdef VOLFORMAT
@@ -4549,6 +4554,9 @@ static void DisplayBenchmarkResults (HWND hwndDlg)
}
SendMessageW(hList, LVM_SETCOLUMNWIDTH, 0, MAKELPARAM(LVSCW_AUTOSIZE_USEHEADER, 0));
+ SendMessageW(hList, LVM_SETCOLUMNWIDTH, 1, MAKELPARAM(LVSCW_AUTOSIZE_USEHEADER, 0));
+ SendMessageW(hList, LVM_SETCOLUMNWIDTH, 2, MAKELPARAM(LVSCW_AUTOSIZE_USEHEADER, 0));
+ SendMessageW(hList, LVM_SETCOLUMNWIDTH, 3, MAKELPARAM(LVSCW_AUTOSIZE_USEHEADER, 0));
}
// specific implementation for support of benchmark operation in wait dialog mechanism