From 4322e60a76440683afc694c1df0f2ccc8de726c3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 7 May 2015 17:11:10 +0000 Subject: missing method CDlgBase::SetCaption() for setting window's title git-svn-id: http://svn.miranda-ng.org/main/trunk@13476 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_core/src/mir_core.def | 1 + src/mir_core/src/mir_core64.def | 1 + src/mir_core/src/ui_utils.cpp | 6 ++++++ 3 files changed, 8 insertions(+) (limited to 'src') diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def index 464ba16984..afc34ebc8a 100644 --- a/src/mir_core/src/mir_core.def +++ b/src/mir_core/src/mir_core.def @@ -1075,3 +1075,4 @@ Proto_IsProtocolLoaded @1073 NONAME Proto_RegisterModule @1074 NONAME ?GetInst@CDlgBase@@QBEPAUHINSTANCE__@@XZ @1075 NONAME ?Find@CDlgBase@@SAPAV1@PAUHWND__@@@Z @1076 NONAME +?SetCaption@CDlgBase@@QAEXPB_W@Z @1077 NONAME diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def index 8ded9a75f0..6b2071dfc8 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 diff --git a/src/mir_core/src/ui_utils.cpp b/src/mir_core/src/ui_utils.cpp index 1148ab247a..e4fad58f64 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::SetCaption(const TCHAR *ptszCaption) +{ + if (m_hwnd && ptszCaption) + SetWindowText(m_hwnd, ptszCaption); +} + int CDlgBase::Resizer(UTILRESIZECONTROL*) { return RD_ANCHORX_LEFT|RD_ANCHORY_TOP; -- cgit v1.2.3