From 393c8dd0345138e00b6a5a1e13b06f60c83e02e8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 11 Jun 2014 17:50:10 +0000 Subject: ansi popups dead git-svn-id: http://svn.miranda-ng.org/main/trunk@9433 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Popup/src/actions.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'plugins/Popup/src/actions.cpp') diff --git a/plugins/Popup/src/actions.cpp b/plugins/Popup/src/actions.cpp index 7ecfa6b41f..22c8d854a9 100644 --- a/plugins/Popup/src/actions.cpp +++ b/plugins/Popup/src/actions.cpp @@ -143,10 +143,6 @@ DWORD MouseOverride(HWND hCombo, int number) // options -#define ListView_InsertItemW(hwnd, pitem) \ - (int)SendMessageW((hwnd), LVM_INSERTITEMW, 0, (LPARAM)(const LVITEMW *)(pitem)) - - void LoadOption_Actions() { PopupOptions.actions = db_get_dw(NULL, MODULNAME, "Actions", ACT_ENABLE | ACT_RIGHTICONS | ACT_DEF_KEEPWND | ACT_DEF_IMONLY | @@ -248,9 +244,9 @@ INT_PTR CALLBACK DlgProcPopupActions(HWND hwnd, UINT msg, WPARAM wParam, LPARAM LVGROUP group = {0}; group.cbSize = sizeof(group); group.mask = LVGF_HEADER | LVGF_GROUPID; - LPWSTR wszGroup = mir_a2u(szGroup); - group.pszHeader = TranslateW(wszGroup); - group.cchHeader = lstrlenW(wszGroup); + LPTSTR wszGroup = mir_a2t(szGroup); + group.pszHeader = TranslateTS(wszGroup); + group.cchHeader = lstrlen(wszGroup); grpId = group.iGroupId = groups.getCount(); int grpId = ListView_InsertGroup(hwndList, -1, &group); mir_free(wszGroup); @@ -267,7 +263,7 @@ INT_PTR CALLBACK DlgProcPopupActions(HWND hwnd, UINT msg, WPARAM wParam, LPARAM item.mask |= LVIF_GROUPID; item.iGroupId = grpId; item.iIndent = 0; - ListView_InsertItemW(hwndList, &item); + ListView_InsertItem(hwndList, &item); ListView_SetItemState(hwndList, i, (gActions[i]->flags & PAF_ENABLED) ? 0x2000 : 0x1000, LVIS_STATEIMAGEMASK); } -- cgit v1.2.3