From 2aabf6594cb0fb4f8db16771c988bf5a6eab2c4b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 5 May 2015 21:55:21 +0000 Subject: Unicode windows procedure, suddenly... git-svn-id: http://svn.miranda-ng.org/main/trunk@13456 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/StopSpamPlus/src/opt_proto.cpp | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'plugins/StopSpamPlus/src/opt_proto.cpp') diff --git a/plugins/StopSpamPlus/src/opt_proto.cpp b/plugins/StopSpamPlus/src/opt_proto.cpp index 17e38c39ed..21ddd4d1d3 100644 --- a/plugins/StopSpamPlus/src/opt_proto.cpp +++ b/plugins/StopSpamPlus/src/opt_proto.cpp @@ -48,9 +48,7 @@ INT_PTR CALLBACK ProtoDlgProc(HWND hwnd, UINT msg, WPARAM, LPARAM lParam) { HWND hwndProto = GetDlgItem(hwnd, IDC_PROTO); - switch (msg) - { - + switch (msg) { case WM_INITDIALOG: TranslateDialogDefault(hwnd); @@ -100,16 +98,15 @@ INT_PTR CALLBACK ProtoDlgProc(HWND hwnd, UINT msg, WPARAM, LPARAM lParam) case IDC_PROTO: switch (((LPNMHDR)lParam)->code) { - case TVN_DELETEITEMA: - { - NMTREEVIEWA * pnmtv = (NMTREEVIEWA *)lParam; - if (pnmtv && pnmtv->itemOld.lParam) - mir_free((ProtocolData*)pnmtv->itemOld.lParam); - } - break; + case TVN_DELETEITEM: + { + NMTREEVIEWA * pnmtv = (NMTREEVIEWA *)lParam; + if (pnmtv && pnmtv->itemOld.lParam) + mir_free((ProtocolData*)pnmtv->itemOld.lParam); + } + break; case NM_CLICK: - { TVHITTESTINFO hti; hti.pt.x = (short)LOWORD(GetMessagePos()); hti.pt.y = (short)HIWORD(GetMessagePos()); @@ -129,7 +126,7 @@ INT_PTR CALLBACK ProtoDlgProc(HWND hwnd, UINT msg, WPARAM, LPARAM lParam) SendMessage(GetParent(hwnd), PSM_CHANGED, (WPARAM)hwnd, 0); } } - } } + } } break; } -- cgit v1.2.3