From f545bc769a16d1ff7b302733f793cbcbd397cdca Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 22 May 2018 20:13:26 +0300 Subject: new helper for MS_TTB_ADDBUTTON --- src/mir_app/src/CMPluginBase.cpp | 5 +++++ src/mir_app/src/mir_app.def | 1 + src/mir_app/src/mir_app64.def | 1 + src/mir_app/src/stdafx.h | 1 + 4 files changed, 8 insertions(+) (limited to 'src') diff --git a/src/mir_app/src/CMPluginBase.cpp b/src/mir_app/src/CMPluginBase.cpp index 8f3001e2b0..91f3e952c8 100644 --- a/src/mir_app/src/CMPluginBase.cpp +++ b/src/mir_app/src/CMPluginBase.cpp @@ -212,6 +212,11 @@ HGENMENU CMPluginBase::addRootMenu(int hMenuObject, LPCWSTR ptszName, int positi return Menu_CreateRoot(hMenuObject, ptszName, position, hIcoLib, m_hLang); } +HANDLE CMPluginBase::addTTB(const struct TTBButton *pButton) +{ + return (HANDLE)CallService(MS_TTB_ADDBUTTON, (WPARAM)pButton, m_hLang); +} + int CMPluginBase::addUserInfo(WPARAM wParam, OPTIONSDIALOGPAGE *odp) { odp->langId = m_hLang; diff --git a/src/mir_app/src/mir_app.def b/src/mir_app/src/mir_app.def index caf575ca95..bd5c9da1c5 100644 --- a/src/mir_app/src/mir_app.def +++ b/src/mir_app/src/mir_app.def @@ -611,3 +611,4 @@ UnregisterPlugin @633 ?addEffect@CMPluginBase@@QAEHPAUEffectIDW@@@Z @640 NONAME ?addFont@CMPluginBase@@QAEHPAUFontID@@@Z @641 NONAME ?addFont@CMPluginBase@@QAEHPAUFontIDW@@@Z @642 NONAME +?addTTB@CMPluginBase@@QAEPAXPBUTTBButton@@@Z @643 NONAME diff --git a/src/mir_app/src/mir_app64.def b/src/mir_app/src/mir_app64.def index 328d898c37..b7ca7c0fa4 100644 --- a/src/mir_app/src/mir_app64.def +++ b/src/mir_app/src/mir_app64.def @@ -611,3 +611,4 @@ UnregisterPlugin @633 ?addEffect@CMPluginBase@@QEAAHPEAUEffectIDW@@@Z @640 NONAME ?addFont@CMPluginBase@@QEAAHPEAUFontID@@@Z @641 NONAME ?addFont@CMPluginBase@@QEAAHPEAUFontIDW@@@Z @642 NONAME +?addTTB@CMPluginBase@@QEAAPEAXPEBUTTBButton@@@Z @643 NONAME diff --git a/src/mir_app/src/stdafx.h b/src/mir_app/src/stdafx.h index 5622b60d72..c9b5e8fa10 100644 --- a/src/mir_app/src/stdafx.h +++ b/src/mir_app/src/stdafx.h @@ -93,6 +93,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include #include +#include #include #include "miranda.h" -- cgit v1.2.3