From ee23690fa6c847a5284f8145e73328cdaab2b617 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 21 Nov 2023 19:01:35 +0300 Subject: SRMM toolbar buttons that require input window to be visible are marked as BBBF_NOREADONLY --- plugins/IEView/src/ieview_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/IEView/src') diff --git a/plugins/IEView/src/ieview_main.cpp b/plugins/IEView/src/ieview_main.cpp index 5932978502..9056ca1950 100644 --- a/plugins/IEView/src/ieview_main.cpp +++ b/plugins/IEView/src/ieview_main.cpp @@ -72,12 +72,12 @@ static int ModulesLoaded(WPARAM, LPARAM) BBButton bbd = {}; bbd.pszModuleName = MODULENAME; bbd.dwButtonID = 1; - bbd.bbbFlags = BBBF_ISCHATBUTTON | BBBF_ISIMBUTTON; + bbd.bbbFlags = BBBF_ISCHATBUTTON | BBBF_ISIMBUTTON | BBBF_NOREADONLY | BBBF_NOREADONLY; bbd.dwDefPos = 40; bbd.hIcon = g_plugin.getIconHandle(IDI_CODE); bbd.pwszText = L"[Code]"; bbd.pwszTooltip = LPGENW("Format text as code"); - Srmm_AddButton(&bbd, &g_plugin); + g_plugin.addButton(&bbd); HookEvent(ME_MSG_BUTTONPRESSED, CustomButtonPressed); -- cgit v1.2.3