diff options
author | George Hazan <george.hazan@gmail.com> | 2025-01-27 12:40:22 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-01-27 12:40:22 +0300 |
commit | acc40f4e70c8297ebb8c9b10dca36c024e03ee3c (patch) | |
tree | 5dbc745b76ff22839d72a40c3df35dc0f17faeaa /protocols/Weather/src | |
parent | 376ce8d16a039456bc6725ebe6bfbc9e0314a0d0 (diff) |
code cleaning
Diffstat (limited to 'protocols/Weather/src')
-rw-r--r-- | protocols/Weather/src/weather_userinfo.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/protocols/Weather/src/weather_userinfo.cpp b/protocols/Weather/src/weather_userinfo.cpp index 32cfd15439..8959f8c7b3 100644 --- a/protocols/Weather/src/weather_userinfo.cpp +++ b/protocols/Weather/src/weather_userinfo.cpp @@ -28,8 +28,7 @@ information #include "stdafx.h" ///////////////////////////////////////////////////////////////////////////////////////// -// dialog process for more data in the user info window -// lParam = contact handle +// dialog for more data in the user info window class CBriefInfoDlg : public CWeatherDlgBase { @@ -66,18 +65,18 @@ public: // get the list to display { - LV_COLUMN lvc = {}; HWND hList = GetDlgItem(m_hwnd, IDC_DATALIST); RECT aRect = {}; GetClientRect(hList, &aRect); // managing styles - lvc.mask = LVCF_WIDTH | LVCF_TEXT; - ListView_SetExtendedListViewStyleEx(hList, - LVS_EX_FULLROWSELECT | LVS_EX_INFOTIP, - LVS_EX_FULLROWSELECT | LVS_EX_INFOTIP); + DWORD dwStyle = LVS_EX_FULLROWSELECT | LVS_EX_INFOTIP; + ListView_SetExtendedListViewStyleEx(hList, dwStyle, dwStyle); // inserting columns + LV_COLUMN lvc = {}; + lvc.mask = LVCF_WIDTH | LVCF_TEXT; + lvc.cx = LIST_COLUMN; lvc.pszText = TranslateT("Variable"); ListView_InsertColumn(hList, 0, &lvc); |