summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clcutils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-06 20:38:45 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-06 20:38:45 +0300
commitadc215dceb172b5eec920d719e1601c293e447bd (patch)
tree078bb33603cecb50b934fbc5cf5a40a6ca781583 /plugins/Clist_modern/src/modern_clcutils.cpp
parent46d6faf9f85dd25661ace8bca83df522033a83f4 (diff)
CLIST_INTERFACE::pfnEndRename => Clist_EndRename
Diffstat (limited to 'plugins/Clist_modern/src/modern_clcutils.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_clcutils.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/Clist_modern/src/modern_clcutils.cpp b/plugins/Clist_modern/src/modern_clcutils.cpp
index 95382bf70b..04498d6ab0 100644
--- a/plugins/Clist_modern/src/modern_clcutils.cpp
+++ b/plugins/Clist_modern/src/modern_clcutils.cpp
@@ -216,13 +216,14 @@ static LRESULT CALLBACK RenameEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wPar
case WM_KEYDOWN:
switch (wParam) {
case VK_RETURN:
- pcli->pfnEndRename(GetParent(hwnd), (ClcData*)GetWindowLongPtr(hwnd, GWLP_USERDATA), 1);
+ Clist_EndRename((ClcData*)GetWindowLongPtr(hwnd, GWLP_USERDATA), 1);
return 0;
case VK_ESCAPE:
- pcli->pfnEndRename(GetParent(hwnd), (ClcData*)GetWindowLongPtr(hwnd, GWLP_USERDATA), 0);
+ Clist_EndRename((ClcData*)GetWindowLongPtr(hwnd, GWLP_USERDATA), 0);
return 0;
}
break;
+
case WM_GETDLGCODE:
if (lParam) {
MSG *msg = (MSG*)lParam;
@@ -230,8 +231,9 @@ static LRESULT CALLBACK RenameEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wPar
if (msg->message == WM_CHAR && msg->wParam == '\t') return 0;
}
return DLGC_WANTMESSAGE;
+
case WM_KILLFOCUS:
- pcli->pfnEndRename(GetParent(hwnd), (ClcData*)GetWindowLongPtr(hwnd, GWLP_USERDATA), 1);
+ Clist_EndRename((ClcData*)GetWindowLongPtr(hwnd, GWLP_USERDATA), 1);
SendMessage(pcli->hwndContactTree, WM_SIZE, 0, 0);
return 0;
}