From 8f7bb7e2d0317146e03f533e77c8da539209d7d2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 6 Oct 2022 16:30:36 +0300 Subject: Jabber: console window's title now contains account's jid --- protocols/JabberG/src/jabber_console.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'protocols/JabberG/src') diff --git a/protocols/JabberG/src/jabber_console.cpp b/protocols/JabberG/src/jabber_console.cpp index 547ac15c80..7f4ab9c19f 100644 --- a/protocols/JabberG/src/jabber_console.cpp +++ b/protocols/JabberG/src/jabber_console.cpp @@ -313,6 +313,12 @@ public: { CSuper::OnInitDialog(); + CMStringW title; + title.Truncate(GetWindowTextLength(m_hwnd)); + GetWindowText(m_hwnd, title.GetBuffer(), title.GetLength() + 1); + title.AppendFormat(L" [%s/%s]", m_proto->getMStringW("jid").c_str(), m_proto->getMStringW("Resource").c_str()); + SetWindowText(m_hwnd, title.c_str()); + Window_SetIcon_IcoLib(m_hwnd, g_plugin.getIconHandle(IDI_CONSOLE)); SendDlgItemMessage(m_hwnd, IDC_CONSOLE, EM_SETEDITSTYLE, SES_EXTENDBACKCOLOR, SES_EXTENDBACKCOLOR); SendDlgItemMessage(m_hwnd, IDC_CONSOLE, EM_EXLIMITTEXT, 0, 0x80000000); -- cgit v1.2.3