summaryrefslogtreecommitdiff
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
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
-rw-r--r--bin10/lib/mir_core.libbin328092 -> 328368 bytes
-rw-r--r--bin10/lib/mir_core64.libbin329832 -> 330114 bytes
-rw-r--r--bin12/lib/mir_core.libbin328092 -> 328368 bytes
-rw-r--r--bin12/lib/mir_core64.libbin329832 -> 330114 bytes
-rw-r--r--include/m_gui.h1
-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
8 files changed, 9 insertions, 0 deletions
diff --git a/bin10/lib/mir_core.lib b/bin10/lib/mir_core.lib
index 846cc7134b..4ebfa5430c 100644
--- a/bin10/lib/mir_core.lib
+++ b/bin10/lib/mir_core.lib
Binary files differ
diff --git a/bin10/lib/mir_core64.lib b/bin10/lib/mir_core64.lib
index e80a43e6a1..aaf5ce9a5a 100644
--- a/bin10/lib/mir_core64.lib
+++ b/bin10/lib/mir_core64.lib
Binary files differ
diff --git a/bin12/lib/mir_core.lib b/bin12/lib/mir_core.lib
index e4a5ed79b7..7f9f517ba9 100644
--- a/bin12/lib/mir_core.lib
+++ b/bin12/lib/mir_core.lib
Binary files differ
diff --git a/bin12/lib/mir_core64.lib b/bin12/lib/mir_core64.lib
index 5b1afcdd93..dd54fe16c3 100644
--- a/bin12/lib/mir_core64.lib
+++ b/bin12/lib/mir_core64.lib
Binary files differ
diff --git a/include/m_gui.h b/include/m_gui.h
index 3e4d54431a..5b52c95840 100644
--- a/include/m_gui.h
+++ b/include/m_gui.h
@@ -268,6 +268,7 @@ public:
int DoModal();
void SetCaption(const TCHAR *ptszCaption);
+ void NotifyChange(void); // sends a notification to a parent window
__forceinline HINSTANCE GetInst() const { return m_hInst; }
__forceinline HWND GetHwnd() const { return m_hwnd; }
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)