diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-06 20:38:45 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-06 20:38:45 +0300 |
commit | adc215dceb172b5eec920d719e1601c293e447bd (patch) | |
tree | 078bb33603cecb50b934fbc5cf5a40a6ca781583 /plugins/Clist_modern/src/modern_clcutils.cpp | |
parent | 46d6faf9f85dd25661ace8bca83df522033a83f4 (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.cpp | 8 |
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;
}
|