diff options
Diffstat (limited to 'c/main.cpp')
-rw-r--r-- | c/main.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -406,16 +406,13 @@ void WndProcMainMenu(const HWND hWnd, unsigned short wCommand) /* Process context menu commands. */ void WndProcContextMenu(const HWND, unsigned short wCommand) { - LVITEM lvi; int cNotFound = 0; /* Look through selected items, applying the * selected command to each one. */ - lvi.mask = LVIF_PARAM; - lvi.iItem = -1; - while ((lvi.iItem = ListView_GetNextItem(g_pElv->hWnd, lvi.iItem, LVNI_SELECTED)) != -1 - && ListView_GetItem(g_pElv->hWnd, &lvi)) { + LVITEM lvi = {LVIF_PARAM, -1}; + while (g_pElv->FindNextItem(&lvi, LVNI_SELECTED)) { /* Process rate commands. */ if (ID_SUBGROUP(wCommand) == IDG_CTX_RATE) { |