diff options
author | George Hazan <ghazan@miranda.im> | 2022-10-06 16:30:36 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-10-06 16:30:36 +0300 |
commit | 8f7bb7e2d0317146e03f533e77c8da539209d7d2 (patch) | |
tree | 451fe96c3e4f4304f61cf94174c5c2c13a2d4ab8 /protocols/JabberG | |
parent | 824b202d681be059056b0bf7d9db2799c79d7ae4 (diff) |
Jabber: console window's title now contains account's jid
Diffstat (limited to 'protocols/JabberG')
-rw-r--r-- | protocols/JabberG/src/jabber_console.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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);
|