diff options
Diffstat (limited to 'plugins/IEView/src/ieview_main.cpp')
-rw-r--r-- | plugins/IEView/src/ieview_main.cpp | 39 |
1 files changed, 6 insertions, 33 deletions
diff --git a/plugins/IEView/src/ieview_main.cpp b/plugins/IEView/src/ieview_main.cpp index 9056ca1950..a407c37c8d 100644 --- a/plugins/IEView/src/ieview_main.cpp +++ b/plugins/IEView/src/ieview_main.cpp @@ -23,15 +23,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. char *workingDirUtf8;
CMPlugin g_plugin;
-IconItem iconList[] =
-{
- { LPGEN("Code"), "CODE", IDI_CODE },
- { LPGEN("RTL On"), "RTL_ON", IDI_RTL_ON },
- { LPGEN("RTL Off"), "RTL_OFF", IDI_RTL_OFF },
- { LPGEN("Group On"), "GROUP_ON", IDI_GROUP_ON },
- { LPGEN("Group Off"), "GROUP_OFF", IDI_GROUP_OFF }
-};
-
/////////////////////////////////////////////////////////////////////////////////////////
PLUGININFOEX pluginInfoEx = {
@@ -53,34 +44,16 @@ CMPlugin::CMPlugin() : /////////////////////////////////////////////////////////////////////////////////////////
-static int CustomButtonPressed(WPARAM, LPARAM lParam)
+static IconItem iconList[] =
{
- CustomButtonClickData *cbcd = (CustomButtonClickData *)lParam;
- if (mir_strcmp(cbcd->pszModule, MODULENAME))
- return 0;
-
- if (cbcd->dwButtonId != 1)
- return 1;
-
- HWND hEdit = GetDlgItem(cbcd->hwndFrom, IDC_SRMM_MESSAGE);
- SendMessage(hEdit, EM_REPLACESEL, TRUE, (LPARAM)L"[code][/code]");
- return 0;
-}
+ { LPGEN("RTL On"), "RTL_ON", IDI_RTL_ON },
+ { LPGEN("RTL Off"), "RTL_OFF", IDI_RTL_OFF },
+ { LPGEN("Group On"), "GROUP_ON", IDI_GROUP_ON },
+ { LPGEN("Group Off"), "GROUP_OFF", IDI_GROUP_OFF }
+};
static int ModulesLoaded(WPARAM, LPARAM)
{
- BBButton bbd = {};
- bbd.pszModuleName = MODULENAME;
- bbd.dwButtonID = 1;
- 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");
- g_plugin.addButton(&bbd);
-
- HookEvent(ME_MSG_BUTTONPRESSED, CustomButtonPressed);
-
Options::init();
return 0;
}
|