From 35eaa182969aae253ccc7120af1bb966e38576d3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 15 Apr 2016 19:09:41 +0000 Subject: clists code cleaning & optimization git-svn-id: http://svn.miranda-ng.org/main/trunk@16668 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_clcutils.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'plugins/Clist_modern/src/modern_clcutils.cpp') diff --git a/plugins/Clist_modern/src/modern_clcutils.cpp b/plugins/Clist_modern/src/modern_clcutils.cpp index 5a48d2c855..8d29148d99 100644 --- a/plugins/Clist_modern/src/modern_clcutils.cpp +++ b/plugins/Clist_modern/src/modern_clcutils.cpp @@ -296,22 +296,13 @@ void cliBeginRenameSelection(HWND hwnd, ClcData *dat) { - RECT rectW; - int h2; GetWindowRect(hwnd, &rectW); - // w = contact->pos_full_first_row.right-contact->pos_full_first_row.left; - // h = contact->pos_full_first_row.bottom-contact->pos_full_first_row.top; - //w = clRect.right-x; - //w = clRect.right-x; - //x += rectW.left;//+contact->pos_full_first_row.left; - //y += rectW.top;//+contact->pos_full_first_row.top; + x = contact->pos_rename_rect.left + rectW.left; y = contact->pos_label.top + rectW.top; w = contact->pos_rename_rect.right - contact->pos_rename_rect.left; - h2 = contact->pos_label.bottom - contact->pos_label.top + 4; - h = h2;//max(h,h2); - + h = contact->pos_label.bottom - contact->pos_label.top + 4; } { -- cgit v1.2.3