diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-17 11:30:28 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-17 11:30:28 +0000 |
commit | 291b5ec8b25a0cfe9bdf669781f1c69193af6c48 (patch) | |
tree | 066ca9d2b80e0cf9c423d7c6f8c83ccbde477dda /plugins/Weather/src/weather_userinfo.cpp | |
parent | a1ed8b94dd8261db28f6542eea03fd0ce88974a4 (diff) |
fixed header bar info
git-svn-id: http://svn.miranda-ng.org/main/trunk@12882 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Weather/src/weather_userinfo.cpp')
-rw-r--r-- | plugins/Weather/src/weather_userinfo.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/Weather/src/weather_userinfo.cpp b/plugins/Weather/src/weather_userinfo.cpp index d773ded4fb..641d37787c 100644 --- a/plugins/Weather/src/weather_userinfo.cpp +++ b/plugins/Weather/src/weather_userinfo.cpp @@ -330,7 +330,7 @@ INT_PTR CALLBACK DlgProcMoreData(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l void LoadBriefInfoText(HWND hwndDlg, MCONTACT hContact)
{
WEATHERINFO winfo;
- TCHAR str[4096], str2[4096];
+ TCHAR str[4096];
// load weather information from the contact into the WEATHERINFO struct
winfo = LoadWeatherInfo(hContact);
@@ -343,10 +343,9 @@ void LoadBriefInfoText(HWND hwndDlg, MCONTACT hContact) SetDlgItemText(hwndDlg, IDC_MTEXT, str);
GetDisplay(&winfo, opt.bTitle, str);
- SetWindowText(hwndDlg, str);
+ SetWindowText(hwndDlg, winfo.city);
GetDisplay(&winfo, _T("%c, %t"), str);
- mir_sntprintf(str2, SIZEOF(str2), _T("%s\n%s"), winfo.city, str);
- SetDlgItemText(hwndDlg, IDC_HEADERBAR, str2);
+ SetDlgItemText(hwndDlg, IDC_HEADERBAR, str);
}
// show brief information dialog
|