diff options
author | George Hazan <ghazan@miranda.im> | 2016-12-01 20:51:42 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-12-01 21:49:54 +0300 |
commit | f9c7760f54c279327a977b0cb5ee028c8f0c0bfb (patch) | |
tree | 0a1cf4602a5eac89dc38606cc91981c2166a83e0 /plugins/FTPFileYM | |
parent | 40203d30ad1a569cfea61442782393b200e9fbe3 (diff) |
more fixes
Diffstat (limited to 'plugins/FTPFileYM')
-rw-r--r-- | plugins/FTPFileYM/src/ftpfile.cpp | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/plugins/FTPFileYM/src/ftpfile.cpp b/plugins/FTPFileYM/src/ftpfile.cpp index 143108bf41..90dc4e12eb 100644 --- a/plugins/FTPFileYM/src/ftpfile.cpp +++ b/plugins/FTPFileYM/src/ftpfile.cpp @@ -181,18 +181,15 @@ void InitHotkeys() void InitTabsrmmButton()
{
- if (ServiceExists(MS_BB_ADDBUTTON)) {
- BBButton btn = { 0 };
- btn.cbSize = sizeof(btn);
- btn.dwButtonID = 1;
- btn.pszModuleName = MODULE;
- btn.dwDefPos = 105;
- btn.hIcon = iconList[ServerList::FTP_COUNT].hIcolib;
- btn.bbbFlags = BBBF_ISARROWBUTTON | BBBF_ISIMBUTTON | BBBF_CANBEHIDDEN;
- btn.pwszTooltip = TranslateT("FTP File");
- CallService(MS_BB_ADDBUTTON, 0, (LPARAM)&btn);
- HookEvent(ME_MSG_BUTTONPRESSED, TabsrmmButtonPressed);
- }
+ BBButton btn = {};
+ btn.dwButtonID = 1;
+ btn.pszModuleName = MODULE;
+ btn.dwDefPos = 105;
+ btn.hIcon = iconList[ServerList::FTP_COUNT].hIcolib;
+ btn.bbbFlags = BBBF_ISARROWBUTTON | BBBF_ISIMBUTTON | BBBF_CANBEHIDDEN;
+ btn.pwszTooltip = TranslateT("FTP File");
+ Srmm_AddButton(&btn);
+ HookEvent(ME_MSG_BUTTONPRESSED, TabsrmmButtonPressed);
}
//------------ MENU & BUTTON HANDLERS ------------//
|