summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-12-19 14:33:20 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-12-19 14:33:20 +0300
commit9d2d33690533c01af99a1f22d019e55134b48ab5 (patch)
treed57ab2c216451d073ff7ee74d647f69d87f80072 /src/mir_app
parent0f16e5b2e1a2919c6194b547a40814c5373e2e0d (diff)
CUserInfoPageDlg does not refresh information when it receives PSN_INFOCHANGED notification
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/mir_app.def1
-rw-r--r--src/mir_app/src/mir_app64.def1
-rw-r--r--src/mir_app/src/userInfo.cpp11
3 files changed, 13 insertions, 0 deletions
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;