From ba671fc7a6c70a9afa8a76ed6c79467e73dad006 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 3 Apr 2014 21:27:49 +0000 Subject: PluginUpdater: Show Languages in an own group git-svn-id: http://svn.miranda-ng.org/main/trunk@8845 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/DlgListNew.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'plugins/PluginUpdater/src') diff --git a/plugins/PluginUpdater/src/DlgListNew.cpp b/plugins/PluginUpdater/src/DlgListNew.cpp index e9bca0acdb..1f3696c392 100644 --- a/plugins/PluginUpdater/src/DlgListNew.cpp +++ b/plugins/PluginUpdater/src/DlgListNew.cpp @@ -233,9 +233,13 @@ INT_PTR CALLBACK DlgList(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) lvg.pszHeader = TranslateT("Icons"); lvg.iGroupId = 2; ListView_InsertGroup(hwndList, 0, &lvg); + + lvg.pszHeader = TranslateT("Languages"); + lvg.iGroupId = 3; + ListView_InsertGroup(hwndList, 0, &lvg); lvg.pszHeader = TranslateT("Other"); - lvg.iGroupId = 3; + lvg.iGroupId = 4; ListView_InsertGroup(hwndList, 0, &lvg); ListView_EnableGroupView(hwndList, TRUE); @@ -247,12 +251,12 @@ INT_PTR CALLBACK DlgList(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) /// OBJLIST &todo = *(OBJLIST *)lParam; for (int i = 0; i < todo.getCount(); ++i) { - int groupId = 3; LVITEM lvi = {0}; lvi.mask = LVIF_PARAM | LVIF_GROUPID | LVIF_TEXT | LVIF_IMAGE; + int groupId = 4; if (_tcschr(todo[i].tszOldName, L'\\') != NULL) - groupId = _tcsstr(todo[i].tszOldName, L"Plugins") != NULL ? 1 : 2; + groupId = (_tcsstr(todo[i].tszOldName, _T("Plugins")) != NULL) ? 1 : ((_tcsstr(todo[i].tszOldName, _T("Languages")) != NULL) ? 3 : 2); lvi.iItem = i; lvi.lParam = (LPARAM)&todo[i]; -- cgit v1.2.3