summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/crypt_popups.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-02-22 04:56:32 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-02-22 04:56:32 +0000
commit400d2e50f52fe113f2130db6062fef4a970a1042 (patch)
treef0d5e62c4573d75ef83542543d687c5c18c499c4 /plugins/SecureIM/src/crypt_popups.cpp
parentd68ef14d25a6b9f3dcec6700e812dc5012aa59ba (diff)
hooking loading/unloading events
git-svn-id: http://svn.miranda-ng.org/main/trunk@3676 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/src/crypt_popups.cpp')
-rw-r--r--plugins/SecureIM/src/crypt_popups.cpp55
1 files changed, 15 insertions, 40 deletions
diff --git a/plugins/SecureIM/src/crypt_popups.cpp b/plugins/SecureIM/src/crypt_popups.cpp
index 924719bb4b..4d91ab8f8d 100644
--- a/plugins/SecureIM/src/crypt_popups.cpp
+++ b/plugins/SecureIM/src/crypt_popups.cpp
@@ -71,46 +71,21 @@ void showPopUp(LPCSTR lpzText,HANDLE hContact,HICON hIcon, UINT type) {
DBFreeVariant(&dbv_timeout);
}
- if ( bCoreUnicode && bPopupUnicode ) {
- POPUPDATAW ppd = {0};
-
- ppd.lchContact = hContact; //Be sure to use a GOOD handle, since this will not be checked.
- ppd.lchIcon = hIcon;
- LPWSTR lpwzContactName = (LPWSTR)CallService(MS_CLIST_GETCONTACTDISPLAYNAME,(WPARAM)hContact,GSMDF_UNICODE);
- wcscpy(ppd.lpwzContactName, lpwzContactName);
- LPWSTR lpwzText = mir_a2u(lpzText);
- wcscpy(ppd.lpwzText, TranslateW(lpwzText));
- mir_free(lpwzText);
- ppd.colorBack = colorBack;
- ppd.colorText = colorText;
- ppd.iSeconds = timeout;
-// ppd.PluginWindowProc = (WNDPROC)PopupDlgProc;
-
- //Now that the plugin data has been filled, we add it to the PopUpData.
-// ppd.PluginData = NULL;
-
- //Now that every field has been filled, we want to see the popup.
- PUAddPopUpW(&ppd);
- }
- else {
- POPUPDATAEX ppd = {0};
-
- ppd.lchContact = hContact; //Be sure to use a GOOD handle, since this will not be checked.
- ppd.lchIcon = hIcon;
- LPSTR lpzContactName = (LPSTR)CallService(MS_CLIST_GETCONTACTDISPLAYNAME,(WPARAM)hContact,0);
- strcpy(ppd.lpzContactName, lpzContactName);
- strcpy(ppd.lpzText, Translate(lpzText));
- ppd.colorBack = colorBack;
- ppd.colorText = colorText;
- ppd.iSeconds = timeout;
-// ppd.PluginWindowProc = (WNDPROC)PopupDlgProc;
-
- //Now that the plugin data has been filled, we add it to the PopUpData.
-// ppd.PluginData = NULL;
-
- //Now that every field has been filled, we want to see the popup.
- PUAddPopUpEx(&ppd);
- }
+ POPUPDATAW ppd = {0};
+
+ ppd.lchContact = hContact; //Be sure to use a GOOD handle, since this will not be checked.
+ ppd.lchIcon = hIcon;
+ LPWSTR lpwzContactName = (LPWSTR)CallService(MS_CLIST_GETCONTACTDISPLAYNAME,(WPARAM)hContact,GSMDF_UNICODE);
+ wcscpy(ppd.lpwzContactName, lpwzContactName);
+ LPWSTR lpwzText = mir_a2u(lpzText);
+ wcscpy(ppd.lpwzText, TranslateW(lpwzText));
+ mir_free(lpwzText);
+ ppd.colorBack = colorBack;
+ ppd.colorText = colorText;
+ ppd.iSeconds = timeout;
+
+ //Now that every field has been filled, we want to see the popup.
+ PUAddPopUpW(&ppd);
}