diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-20 06:52:26 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-20 06:52:26 +0000 |
commit | b766ebf1a1091dcc2859a92da300c44e0e432a84 (patch) | |
tree | 833eb906adc49c21c799b5bd222e714338dfebd8 /protocols/Weather/weather_userinfo.cpp | |
parent | 4c7aed90685d65bc150a16e901542471041bd148 (diff) |
- avatars fix for Weather
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@495 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Weather/weather_userinfo.cpp')
-rw-r--r-- | protocols/Weather/weather_userinfo.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/protocols/Weather/weather_userinfo.cpp b/protocols/Weather/weather_userinfo.cpp index 066b004062..055fdb9fed 100644 --- a/protocols/Weather/weather_userinfo.cpp +++ b/protocols/Weather/weather_userinfo.cpp @@ -68,9 +68,8 @@ INT_PTR CALLBACK DlgProcUIPage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPa {
WEATHERINFO w;
TCHAR str[MAX_TEXT_SIZE];
- HANDLE hContact;
- hContact = (HANDLE)GetWindowLongPtr(hwndDlg, GWLP_USERDATA);
+ HANDLE hContact = (HANDLE)GetWindowLongPtr(hwndDlg, GWLP_USERDATA);
switch (msg) {
case WM_INITDIALOG:
TranslateDialogDefault(hwndDlg);
@@ -88,11 +87,11 @@ INT_PTR CALLBACK DlgProcUIPage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPa { // bold and enlarge the current condition
LOGFONT lf;
- HFONT hNormalFont=(HFONT)SendDlgItemMessage(hwndDlg,IDC_INFO2,WM_GETFONT,0,0);
+ HFONT hNormalFont = (HFONT)SendDlgItemMessage(hwndDlg,IDC_INFO2,WM_GETFONT,0,0);
GetObject(hNormalFont,sizeof(lf),&lf);
- lf.lfWeight=FW_BOLD;
- lf.lfWidth=7;
- lf.lfHeight=15;
+ lf.lfWeight = FW_BOLD;
+ lf.lfWidth = 7;
+ lf.lfHeight = 15;
SendDlgItemMessage(hwndDlg, IDC_INFO2, WM_SETFONT, (WPARAM)CreateFontIndirect(&lf), 0);
}
// set the text for displaying other current weather conditions data
@@ -119,8 +118,7 @@ INT_PTR CALLBACK DlgProcUIPage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPa break;
case WM_COMMAND:
- switch(LOWORD(wParam))
- {
+ switch(LOWORD(wParam)) {
case IDC_MOREDETAIL:
{
HWND hMoreDataDlg;
|