From 9d2d33690533c01af99a1f22d019e55134b48ab5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 19 Dec 2023 14:33:20 +0300 Subject: CUserInfoPageDlg does not refresh information when it receives PSN_INFOCHANGED notification --- include/m_userinfo.h | 2 ++ libs/win32/mir_app.lib | Bin 275968 -> 276524 bytes libs/win64/mir_app.lib | Bin 275278 -> 275834 bytes src/mir_app/src/mir_app.def | 1 + src/mir_app/src/mir_app64.def | 1 + src/mir_app/src/userInfo.cpp | 11 +++++++++++ 6 files changed, 15 insertions(+) diff --git a/include/m_userinfo.h b/include/m_userinfo.h index 880d224739..a0976e90a5 100644 --- a/include/m_userinfo.h +++ b/include/m_userinfo.h @@ -39,6 +39,8 @@ public: m_hContact = hContact; } + virtual INT_PTR DlgProc(UINT, WPARAM, LPARAM) override; + virtual bool IsEmpty() const; virtual bool OnRefresh(); }; diff --git a/libs/win32/mir_app.lib b/libs/win32/mir_app.lib index 88d5d82528..8665026b0c 100644 Binary files a/libs/win32/mir_app.lib and b/libs/win32/mir_app.lib differ diff --git a/libs/win64/mir_app.lib b/libs/win64/mir_app.lib index 63178c0078..681b7b006a 100644 Binary files a/libs/win64/mir_app.lib and b/libs/win64/mir_app.lib differ diff --git a/src/mir_app/src/mir_app.def b/src/mir_app/src/mir_app.def index 6d7da2e47a..e2f035218c 100644 --- a/src/mir_app/src/mir_app.def +++ b/src/mir_app/src/mir_app.def @@ -920,3 +920,4 @@ Clist_GroupSaveExpanded @1003 NONAME ?isAlertable@EventInfo@DB@@QBE_NXZ @1037 NONAME ?Send@File@@YGPAUHWND__@@IQAPA_W@Z @1038 NONAME ?GetReceivedFolder@File@@YGPA_WIPA_WI_N@Z @1039 NONAME +?DlgProc@CUserInfoPageDlg@@UAEHIIJ@Z @1040 NONAME diff --git a/src/mir_app/src/mir_app64.def b/src/mir_app/src/mir_app64.def index c6da8544fd..6c39849c39 100644 --- a/src/mir_app/src/mir_app64.def +++ b/src/mir_app/src/mir_app64.def @@ -920,3 +920,4 @@ Clist_GroupSaveExpanded @1003 NONAME ?isAlertable@EventInfo@DB@@QEBA_NXZ @1037 NONAME ?Send@File@@YAPEAUHWND__@@IQEAPEA_W@Z @1038 NONAME ?GetReceivedFolder@File@@YAPEA_WIPEA_W_K_N@Z @1039 NONAME +?DlgProc@CUserInfoPageDlg@@UEAA_JI_K_J@Z @1040 NONAME diff --git a/src/mir_app/src/userInfo.cpp b/src/mir_app/src/userInfo.cpp index 196ea0ae0a..7b3d4de607 100644 --- a/src/mir_app/src/userInfo.cpp +++ b/src/mir_app/src/userInfo.cpp @@ -33,6 +33,17 @@ CUserInfoPageDlg::CUserInfoPageDlg(class CMPluginBase &pPlug, int idDialog) : m_forceResizable = true; } +INT_PTR CUserInfoPageDlg::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam) +{ + if (uMsg == WM_NOTIFY) { + NMHDR *pnmh = (NMHDR *)lParam; + if (pnmh->code == PSN_INFOCHANGED) + OnRefresh(); + } + + return CDlgBase::DlgProc(uMsg, wParam, lParam); +} + bool CUserInfoPageDlg::IsEmpty() const { return false; -- cgit v1.2.3