diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-10 21:15:21 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-10 21:15:21 +0000 |
commit | 850793657b4cea418fbf0daa175a563b43c273b2 (patch) | |
tree | e88de97b26643a9b5ef319672912b4e1fde1a0d5 | |
parent | 6393186d10818077ceef5931249a83e971c78a8b (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.lib | bin | 328092 -> 328368 bytes | |||
-rw-r--r-- | bin10/lib/mir_core64.lib | bin | 329832 -> 330114 bytes | |||
-rw-r--r-- | bin12/lib/mir_core.lib | bin | 328092 -> 328368 bytes | |||
-rw-r--r-- | bin12/lib/mir_core64.lib | bin | 329832 -> 330114 bytes | |||
-rw-r--r-- | include/m_gui.h | 1 | ||||
-rw-r--r-- | src/mir_core/src/mir_core.def | 1 | ||||
-rw-r--r-- | src/mir_core/src/mir_core64.def | 1 | ||||
-rw-r--r-- | src/mir_core/src/ui_utils.cpp | 6 |
8 files changed, 9 insertions, 0 deletions
diff --git a/bin10/lib/mir_core.lib b/bin10/lib/mir_core.lib Binary files differindex 846cc7134b..4ebfa5430c 100644 --- a/bin10/lib/mir_core.lib +++ b/bin10/lib/mir_core.lib diff --git a/bin10/lib/mir_core64.lib b/bin10/lib/mir_core64.lib Binary files differindex e80a43e6a1..aaf5ce9a5a 100644 --- a/bin10/lib/mir_core64.lib +++ b/bin10/lib/mir_core64.lib diff --git a/bin12/lib/mir_core.lib b/bin12/lib/mir_core.lib Binary files differindex e4a5ed79b7..7f9f517ba9 100644 --- a/bin12/lib/mir_core.lib +++ b/bin12/lib/mir_core.lib diff --git a/bin12/lib/mir_core64.lib b/bin12/lib/mir_core64.lib Binary files differindex 5b1afcdd93..dd54fe16c3 100644 --- a/bin12/lib/mir_core64.lib +++ b/bin12/lib/mir_core64.lib 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)
|