summaryrefslogtreecommitdiff
path: root/protocols/Weather/src/weather_userinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Weather/src/weather_userinfo.cpp')
-rw-r--r--protocols/Weather/src/weather_userinfo.cpp13
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);