diff options
author | George Hazan <ghazan@miranda.im> | 2022-06-05 15:12:40 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-06-05 15:12:40 +0300 |
commit | e6c6e964f8cefc5f1d7e5fe3fa57e501eddab58e (patch) | |
tree | d9f4a7d7d01b43a64b662a785130c92ca06aa515 | |
parent | c6b702d7ec4c3416677e7bbb5efefaa8e923fd0d (diff) |
fixes #3086 (tabSRMM: не полностью отображается подсказка к кнопке отправки)
-rw-r--r-- | src/mir_app/src/button.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mir_app/src/button.cpp b/src/mir_app/src/button.cpp index 60d31ba0d7..4a9b548c83 100644 --- a/src/mir_app/src/button.cpp +++ b/src/mir_app/src/button.cpp @@ -454,20 +454,22 @@ static LRESULT CALLBACK MButtonWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR bct->hwndToolTips = ptt->hwnd;
}
}
- TOOLINFO ti = {0};
+ TOOLINFO ti = {};
ti.cbSize = sizeof(ti);
ti.uFlags = TTF_IDISHWND;
ti.hwnd = bct->hwnd;
ti.uId = (UINT_PTR)bct->hwnd;
if (SendMessage(bct->hwndToolTips, TTM_GETTOOLINFO, 0, (LPARAM)&ti))
SendMessage(bct->hwndToolTips, TTM_DELTOOL, 0, (LPARAM)&ti);
- ti.uFlags = TTF_IDISHWND|TTF_SUBCLASS;
+
+ ti.uFlags = TTF_IDISHWND | TTF_SUBCLASS;
ti.uId = (UINT_PTR)bct->hwnd;
if (lParam & BATF_UNICODE)
ti.lpszText = mir_wstrdup(TranslateW((wchar_t*)wParam));
else
ti.lpszText = Langpack_PcharToTchar((char*)wParam);
SendMessage(bct->hwndToolTips, TTM_ADDTOOL, 0, (LPARAM)&ti);
+ SendMessage(bct->hwndToolTips, TTM_SETMAXTIPWIDTH, 0, 300);
mir_free(ti.lpszText);
}
break;
|