summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-05-10 21:15:21 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-05-10 21:15:21 +0000
commit850793657b4cea418fbf0daa175a563b43c273b2 (patch)
treee88de97b26643a9b5ef319672912b4e1fde1a0d5 /src/mir_core
parent6393186d10818077ceef5931249a83e971c78a8b (diff)
CDlgBase::NotifyChange() - method for child dialogs to notify parents
git-svn-id: http://svn.miranda-ng.org/main/trunk@13518 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/mir_core.def1
-rw-r--r--src/mir_core/src/mir_core64.def1
-rw-r--r--src/mir_core/src/ui_utils.cpp6
3 files changed, 8 insertions, 0 deletions
diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def
index 02430c360a..9234c6236a 100644
--- a/src/mir_core/src/mir_core.def
+++ b/src/mir_core/src/mir_core.def
@@ -1076,3 +1076,4 @@ Proto_RegisterModule @1074 NONAME
?GetInst@CDlgBase@@QBEPAUHINSTANCE__@@XZ @1075 NONAME
?Find@CDlgBase@@SAPAV1@PAUHWND__@@@Z @1076 NONAME
?SetCaption@CDlgBase@@QAEXPB_W@Z @1077 NONAME
+?NotifyChange@CDlgBase@@QAEXXZ @1078 NONAME
diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def
index a92977f3c8..cea83c2f8a 100644
--- a/src/mir_core/src/mir_core64.def
+++ b/src/mir_core/src/mir_core64.def
@@ -1076,3 +1076,4 @@ Proto_RegisterModule @1074 NONAME
?GetInst@CDlgBase@@QEBAPEAUHINSTANCE__@@XZ @1075 NONAME
?Find@CDlgBase@@SAPEAV1@PEAUHWND__@@@Z @1076 NONAME
?SetCaption@CDlgBase@@QEAAXPEB_W@Z @1077 NONAME
+?NotifyChange@CDlgBase@@QEAAXXZ @1078 NONAME
diff --git a/src/mir_core/src/ui_utils.cpp b/src/mir_core/src/ui_utils.cpp
index 720ad5f812..8df0253782 100644
--- a/src/mir_core/src/ui_utils.cpp
+++ b/src/mir_core/src/ui_utils.cpp
@@ -77,6 +77,12 @@ int CDlgBase::DoModal()
return DialogBoxParam(m_hInst, MAKEINTRESOURCE(m_idDialog), m_hwndParent, GlobalDlgProc, (LPARAM)this);
}
+void CDlgBase::NotifyChange(void)
+{
+ if (m_hwndParent)
+ SendMessage(m_hwndParent, PSM_CHANGED, (WPARAM)m_hwnd, 0);
+}
+
void CDlgBase::SetCaption(const TCHAR *ptszCaption)
{
if (m_hwnd && ptszCaption)