summaryrefslogtreecommitdiff
path: root/plugins/IEView/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-21 19:01:35 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-21 19:01:35 +0300
commitee23690fa6c847a5284f8145e73328cdaab2b617 (patch)
treefc9fa53601eb0babccec11021dc9638c07522f9c /plugins/IEView/src
parenta455124c53674338f581a1970768182223c3a49a (diff)
SRMM toolbar buttons that require input window to be visible are marked as BBBF_NOREADONLY
Diffstat (limited to 'plugins/IEView/src')
-rw-r--r--plugins/IEView/src/ieview_main.cpp4
1 files changed, 2 insertions, 2 deletions
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);