summaryrefslogtreecommitdiff
path: root/plugins/YAPP/src/services.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-15 22:31:48 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-15 22:31:48 +0000
commit588a9b2b5ee9d87d4a8b640b63a2544675d93ded (patch)
treeb88b1ad9682ee1d9030e69a907c00fe539caf8a1 /plugins/YAPP/src/services.cpp
parentd5d85efcecd6fa2f2efd84b369a642f47a511169 (diff)
POPUPDATAEX_V2: ansi version removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@4059 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YAPP/src/services.cpp')
-rw-r--r--plugins/YAPP/src/services.cpp50
1 files changed, 0 insertions, 50 deletions
diff --git a/plugins/YAPP/src/services.cpp b/plugins/YAPP/src/services.cpp
index 0dab66ce86..2a22a6d99e 100644
--- a/plugins/YAPP/src/services.cpp
+++ b/plugins/YAPP/src/services.cpp
@@ -121,18 +121,6 @@ static INT_PTR ChangeTextW(WPARAM wParam, LPARAM lParam)
return 0;
}
-static INT_PTR ChangeTextA(WPARAM wParam, LPARAM lParam)
-{
- HWND hwndPop = (HWND)wParam;
- char *newText = (char *)lParam;
- mir_ptr<wchar_t> buff( mir_a2u(newText));
- StripBBCodesInPlace(buff);
-
- if (IsWindow(hwndPop))
- SendMessage(hwndPop, PUM_SETTEXT, 0, (LPARAM)buff);
- return 0;
-}
-
void ShowPopup(PopupData &pd_in)
{
PopupData *pd_out = (PopupData *)mir_alloc(sizeof(PopupData));
@@ -240,42 +228,6 @@ static INT_PTR TogglePopups(WPARAM wParam, LPARAM lParam)
return 0;
}
-static INT_PTR PopupChangeA(WPARAM wParam, LPARAM lParam)
-{
- HWND hwndPop = (HWND)wParam;
- POPUPDATA *pd_in = (POPUPDATA *)lParam;
-
- if (IsWindow(hwndPop)) {
- PopupData pd_out;
- pd_out.cbSize = sizeof(PopupData);
- pd_out.flags = PDF_UNICODE;
-
- pd_out.pwzTitle = mir_a2u(pd_in->lpzContactName);
- pd_out.pwzText = mir_a2u(pd_in->lpzText);
- StripBBCodesInPlace(pd_out.pwzTitle);
- StripBBCodesInPlace(pd_out.pwzText);
-
- pd_out.hContact = pd_in->lchContact;
- pd_out.SetIcon(pd_in->lchIcon);
- if (pd_in->colorBack == 0xffffffff) // that's the old #define for 'skinned bg'
- pd_out.colorBack = pd_out.colorText = 0;
- else {
- pd_out.colorBack = pd_in->colorBack & 0xFFFFFF;
- pd_out.colorText = pd_in->colorText & 0xFFFFFF;
- }
- pd_out.colorBack = pd_in->colorBack;
- pd_out.colorText = pd_in->colorText;
- pd_out.windowProc = pd_in->PluginWindowProc;
- pd_out.opaque = pd_in->PluginData;
- pd_out.timeout = pd_in->iSeconds;
-
- lstPopupHistory.Add(pd_out.pwzTitle, pd_out.pwzText, time(0));
-
- SendMessage(hwndPop, PUM_CHANGE, 0, (LPARAM)&pd_out);
- }
- return 0;
-}
-
static INT_PTR PopupChangeW(WPARAM wParam, LPARAM lParam)
{
HWND hwndPop = (HWND)wParam;
@@ -419,8 +371,6 @@ void InitServices()
CreateServiceFunction(MS_POPUP_ADDPOPUP, CreatePopup);
CreateServiceFunction(MS_POPUP_ADDPOPUPW, CreatePopupW);
CreateServiceFunction(MS_POPUP_CHANGETEXTW, ChangeTextW);
- CreateServiceFunction(MS_POPUP_CHANGETEXT, ChangeTextA);
- CreateServiceFunction(MS_POPUP_CHANGE, PopupChangeA);
CreateServiceFunction(MS_POPUP_CHANGEW, PopupChangeW);
CreateServiceFunction(MS_POPUP_GETCONTACT, GetContact);
CreateServiceFunction(MS_POPUP_GETPLUGINDATA, GetOpaque);