diff options
author | George Hazan <ghazan@miranda.im> | 2020-05-10 12:39:41 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-05-10 12:39:47 +0300 |
commit | 17895ec37e6e958d9dec963484091f38a3329443 (patch) | |
tree | 5f21c1014674f807fea54f802293db26654a3001 /libs/mTextControl/src/textcontrol.cpp | |
parent | 0ef19712e4a5130e58f3931f19090ca8cfe6cf3a (diff) |
mTextControl related code cleaning
Diffstat (limited to 'libs/mTextControl/src/textcontrol.cpp')
-rw-r--r-- | libs/mTextControl/src/textcontrol.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/mTextControl/src/textcontrol.cpp b/libs/mTextControl/src/textcontrol.cpp index a7069ae88c..c62148269b 100644 --- a/libs/mTextControl/src/textcontrol.cpp +++ b/libs/mTextControl/src/textcontrol.cpp @@ -78,8 +78,7 @@ LRESULT CALLBACK MTextControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM GetWindowText(hwnd, data->text, textLength + 1); data->mtext = MTextCreateW(data->htu, data->text); - RECT rc; GetClientRect(hwnd, &rc); - MTextSetParent(data->mtext, hwnd, rc); + MTextSetParent(data->mtext, hwnd); InvalidateRect(hwnd, nullptr, TRUE); } |