diff options
author | George Hazan <george.hazan@gmail.com> | 2016-04-15 19:09:41 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-04-15 19:09:41 +0000 |
commit | 35eaa182969aae253ccc7120af1bb966e38576d3 (patch) | |
tree | 1f12718692a0eb0a54fa908774a5683d06a07440 /plugins/Clist_modern/src/modern_clcutils.cpp | |
parent | a6c1b3df28aabd7a4288e8783e2215c919b0c354 (diff) |
clists code cleaning & optimization
git-svn-id: http://svn.miranda-ng.org/main/trunk@16668 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clcutils.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_clcutils.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
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;
}
{
|