diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/TranslitSwitcher/src/Layoutproc.cpp | 14 | ||||
-rw-r--r-- | plugins/TranslitSwitcher/src/TranslitSwitcher.h | 1 |
2 files changed, 3 insertions, 12 deletions
diff --git a/plugins/TranslitSwitcher/src/Layoutproc.cpp b/plugins/TranslitSwitcher/src/Layoutproc.cpp index a2fac0f830..6cd5342ad5 100644 --- a/plugins/TranslitSwitcher/src/Layoutproc.cpp +++ b/plugins/TranslitSwitcher/src/Layoutproc.cpp @@ -483,22 +483,14 @@ VOID SwitchLayout(BOOL lastword) if (smileyPrs != NULL)
CallService(MS_SMILEYADD_BATCHFREE, 0, (LPARAM)smileyPrs);
- POPUPDATAT_V2 pd;
- ZeroMemory(&pd, sizeof(pd));
- pd.cbSize = sizeof(POPUPDATAT_V2);
- pd.lchContact = NULL; //(HANDLE)wParam;
+ POPUPDATAT pd = { 0 };
pd.lchIcon = Skin_GetIcon("Switch Layout and Send");
lstrcpyn(pd.lptzText, buf, SIZEOF(pd.lptzText));
lstrcpyn(pd.lptzContactName, TranslateT("TranslitSwitcher"), SIZEOF(pd.lptzContactName));
- pd.colorBack = pd.colorText = 0;
- pd.iSeconds = 0;
- CallService(MS_POPUP_ADDPOPUPT, (WPARAM) &pd, 0);
-
- //PUShowMessageT(buf, SM_NOTIFY);
+ PUAddPopUpT(&pd);
}
}
- else
- if(lstrcmp(szClassName, _T("RichEdit20W")) == 0)
+ else if(lstrcmp(szClassName, _T("RichEdit20W")) == 0)
{
DWORD dwStart, dwEnd;
int i, slen, start = 0, end = 0;
diff --git a/plugins/TranslitSwitcher/src/TranslitSwitcher.h b/plugins/TranslitSwitcher/src/TranslitSwitcher.h index 6bcb9dab3b..20dc5c9ae4 100644 --- a/plugins/TranslitSwitcher/src/TranslitSwitcher.h +++ b/plugins/TranslitSwitcher/src/TranslitSwitcher.h @@ -36,7 +36,6 @@ Boston, MA 02111-1307, USA. #include <m_msg_buttonsbar.h>
#include <m_smileyadd.h>
#include <m_ieview.h>
-#include <m_popup2.h>
#include "version.h"
#include "resource.h"
|