summaryrefslogtreecommitdiff
path: root/tipper/popwin.cpp
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2006-11-28 00:43:38 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2006-11-28 00:43:38 +0000
commit1544759bd9b2418f5929680adf9b66e727f35d98 (patch)
tree6b08d92753649dcf8464d572dfe20c548a2bfd25 /tipper/popwin.cpp
parent0a7c9bab72e6bc7a6cfbd0ac908f9c35b5eb31d9 (diff)
patch for fontservice ansi/unicode services by TioDuke
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@64 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'tipper/popwin.cpp')
-rw-r--r--tipper/popwin.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tipper/popwin.cpp b/tipper/popwin.cpp
index 5110ae8..a092663 100644
--- a/tipper/popwin.cpp
+++ b/tipper/popwin.cpp
@@ -207,11 +207,16 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
// don't use stored status message
DBDeleteContactSetting(pwd->hContact, MODULE, "TempStatusMsg");
- {
+ if(unicode_system) {
TCHAR *stzCDN = (TCHAR *) CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)pwd->hContact, GCDNF_TCHAR);
if(stzCDN) _tcsncpy(pwd->swzTitle, stzCDN, TITLE_TEXT_LEN);
else _tcscpy(pwd->swzTitle, TranslateT("(Unknown)"));
+ } else {
+ char *szCDN = (char *) CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)pwd->hContact, 0);
+
+ if(szCDN) a2t(szCDN, pwd->swzTitle, TITLE_TEXT_LEN);
+ else _tcscpy(pwd->swzTitle, TranslateT("(Unknown)"));
}
SendMessage(hwnd, PUM_REFRESH_VALUES, 0, 0);