diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-05 21:55:21 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-05 21:55:21 +0000 |
commit | 2aabf6594cb0fb4f8db16771c988bf5a6eab2c4b (patch) | |
tree | 202865579328cc407dc249ca6ed3ea80f9f6f80a /plugins/StopSpamPlus | |
parent | 9de8f2a1584b810d0fc651704f7f732dc0943d86 (diff) |
Unicode windows procedure, suddenly...
git-svn-id: http://svn.miranda-ng.org/main/trunk@13456 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StopSpamPlus')
-rw-r--r-- | plugins/StopSpamPlus/src/opt_proto.cpp | 21 |
1 files changed, 9 insertions, 12 deletions
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;
}
|