diff options
-rw-r--r-- | include/m_gui.h | 1 | ||||
-rw-r--r-- | libs/win32/mir_core.lib | bin | 493990 -> 494292 bytes | |||
-rw-r--r-- | libs/win64/mir_core.lib | bin | 499242 -> 499554 bytes | |||
-rw-r--r-- | src/mir_core/src/Windows/CCtrlMButton.cpp | 7 | ||||
-rw-r--r-- | src/mir_core/src/mir_core.def | 1 | ||||
-rw-r--r-- | src/mir_core/src/mir_core64.def | 1 |
6 files changed, 9 insertions, 1 deletions
diff --git a/include/m_gui.h b/include/m_gui.h index 4386af0c79..c3ba220507 100644 --- a/include/m_gui.h +++ b/include/m_gui.h @@ -629,6 +629,7 @@ public: void MakeFlat();
void MakePush();
+ void SetTooltip(const char *pszTooltip);
void OnInit() override;
diff --git a/libs/win32/mir_core.lib b/libs/win32/mir_core.lib Binary files differindex 6adf3dddb9..e4f7211dbf 100644 --- a/libs/win32/mir_core.lib +++ b/libs/win32/mir_core.lib diff --git a/libs/win64/mir_core.lib b/libs/win64/mir_core.lib Binary files differindex d0a67b237e..f8a1bb650b 100644 --- a/libs/win64/mir_core.lib +++ b/libs/win64/mir_core.lib diff --git a/src/mir_core/src/Windows/CCtrlMButton.cpp b/src/mir_core/src/Windows/CCtrlMButton.cpp index c300ba9814..2941ed2ad6 100644 --- a/src/mir_core/src/Windows/CCtrlMButton.cpp +++ b/src/mir_core/src/Windows/CCtrlMButton.cpp @@ -46,8 +46,8 @@ void CCtrlMButton::OnInit() {
CCtrlButton::OnInit();
+ SetTooltip(m_toolTip);
SendMessage(m_hwnd, BM_SETIMAGE, IMAGE_ICON, (LPARAM)m_hIcon);
- SendMessage(m_hwnd, BUTTONADDTOOLTIP, (WPARAM)TranslateW_LP(_A2T(m_toolTip), m_parentWnd->GetPlugin()), BATF_UNICODE);
SendMessage(m_hwnd, BUTTONSETASFLATBTN, TRUE, 0);
}
@@ -60,3 +60,8 @@ void CCtrlMButton::MakePush() {
SendMessage(m_hwnd, BUTTONSETASPUSHBTN, TRUE, 0);
}
+
+void CCtrlMButton::SetTooltip(const char *pszTooltip)
+{
+ SendMessage(m_hwnd, BUTTONADDTOOLTIP, (WPARAM)TranslateW_LP(_A2T(pszTooltip), m_parentWnd->GetPlugin()), BATF_UNICODE);
+}
\ No newline at end of file diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def index 0d7894a5c5..2d4f776b42 100644 --- a/src/mir_core/src/mir_core.def +++ b/src/mir_core/src/mir_core.def @@ -1561,3 +1561,4 @@ db_event_updateId @1772 _TranslateW_UUID@8 @1785 NONAME
?Langpack_GetDefaultLocaleName@@YGPADXZ @1786 NONAME
_EventExists@4 @1787 NONAME
+?SetTooltip@CCtrlMButton@@QAEXPBD@Z @1788 NONAME
diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def index db7faf95a8..db3c9dbf2d 100644 --- a/src/mir_core/src/mir_core64.def +++ b/src/mir_core/src/mir_core64.def @@ -1561,3 +1561,4 @@ db_event_updateId @1772 TranslateW_UUID @1785 NONAME
?Langpack_GetDefaultLocaleName@@YAPEADXZ @1786 NONAME
EventExists @1787 NONAME
+?SetTooltip@CCtrlMButton@@QEAAXPEBD@Z @1788 NONAME
|