From babbd4c9c26d997683280ac663e03b04910b2826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 30 Jul 2022 00:01:49 +0200 Subject: Formatting. This style is more compact and quicker to read once you know what the first two member in LVITEM are (mask and iItem). --- c/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'c/main.cpp') diff --git a/c/main.cpp b/c/main.cpp index 7fef22e..c9be01d 100644 --- a/c/main.cpp +++ b/c/main.cpp @@ -383,9 +383,7 @@ void WndProcMainMenu(const HWND hWnd, unsigned short wCommand) const int iEpFocus = ListView_GetNextItem(g_pElv->hWnd, -1, LVNI_FOCUSED); if (iEpFocus == -1) break; - LVITEM lvi; - lvi.iItem = iEpFocus; - lvi.mask = LVIF_PARAM; + LVITEM lvi = {LVIF_PARAM, iEpFocus}; if (!ListView_GetItem(g_pElv->hWnd, &lvi)) break; char* sz; -- cgit v1.2.3