summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-01-27 12:40:22 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-01-27 12:40:22 +0300
commitacc40f4e70c8297ebb8c9b10dca36c024e03ee3c (patch)
tree5dbc745b76ff22839d72a40c3df35dc0f17faeaa
parent376ce8d16a039456bc6725ebe6bfbc9e0314a0d0 (diff)
code cleaning
-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);