diff options
| author | wishmaster51@gmail.com <wishmaster51@gmail.com@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2012-05-11 19:07:02 +0000 |
|---|---|---|
| committer | wishmaster51@gmail.com <wishmaster51@gmail.com@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2012-05-11 19:07:02 +0000 |
| commit | 204ac9f4649859b583dffc2588abbd0a736656fd (patch) | |
| tree | cabb9ba88658b1a22538b5b62bf6fb1e9244dede /Plugins/avatarhistory/AvatarDlg.cpp | |
| parent | d99bb5efdfe347e690012bdbb4ff382271508994 (diff) | |
-Show contact display name in save dialog
-Added hidden debug setting:
Add BYTE "Debug" in "AvatarHistory" module to show debug popups.
ATTENTION: This is only recommended for advanced users to find problems,
in normal usage they tend to become annoying
git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@251 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Plugins/avatarhistory/AvatarDlg.cpp')
| -rw-r--r-- | Plugins/avatarhistory/AvatarDlg.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Plugins/avatarhistory/AvatarDlg.cpp b/Plugins/avatarhistory/AvatarDlg.cpp index 10e64b3..4abe154 100644 --- a/Plugins/avatarhistory/AvatarDlg.cpp +++ b/Plugins/avatarhistory/AvatarDlg.cpp @@ -589,6 +589,17 @@ int ShowSaveDialog(HWND hwnd, TCHAR* fn, HANDLE hContact) lstrcpyn(file, _tcsrchr(fn, '\\')+1, sizeof(file));
ofn.lpstrFile = file;
+ TCHAR *displayName = (TCHAR*) CallService(MS_CLIST_GETCONTACTDISPLAYNAME,(WPARAM)hContact,GCDNF_TCHAR);
+ if(displayName)
+ {
+ TCHAR title[MAX_PATH];
+ mir_sntprintf(title,sizeof(title),TranslateT("Save Avatar for %s"),displayName);
+ ofn.lpstrTitle = title;
+ }
+ else
+ {
+ ofn.lpstrTitle = TranslateT("Save Avatar");
+ }
ofn.nMaxFile = MAX_PATH;
ofn.Flags = OFN_PATHMUSTEXIST | OFN_DONTADDTORECENT;
ofn.lpstrDefExt = _tcsrchr(fn, '.')+1;
|
