diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-11-26 17:42:34 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-11-26 17:42:34 +0000 |
commit | 423611627a733b23ad5dd0ed0849977b20020de4 (patch) | |
tree | be7c44ab663f371062bf764a3eee5f051f3aa9ea /protocols/IRCG/src/windows.cpp | |
parent | bddc5c97867e90701a040d89d4f98dfae61890e0 (diff) |
IRC: fixed window title v.2(thx person)
git-svn-id: http://svn.miranda-ng.org/main/trunk@11100 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IRCG/src/windows.cpp')
-rw-r--r-- | protocols/IRCG/src/windows.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/IRCG/src/windows.cpp b/protocols/IRCG/src/windows.cpp index eb3ecbe671..bb1f6d889c 100644 --- a/protocols/IRCG/src/windows.cpp +++ b/protocols/IRCG/src/windows.cpp @@ -307,6 +307,7 @@ INT_PTR CListDlg::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) // Retrieve the input text
TCHAR strFilterText[255];
+ TCHAR newTitle[255];
m_filter.GetText(strFilterText, SIZEOF(strFilterText));
if (strFilterText[0]) {
@@ -386,15 +387,14 @@ INT_PTR CListDlg::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) ShowWindow(m_list.GetHwnd(), SW_HIDE);
// New dialog title
- TCHAR newTitle[255];
mir_sntprintf(newTitle, SIZEOF(newTitle), TranslateT("%s - Filtered - %d items"), strFilterText, itemCount);
SetWindowText(m_hwnd, newTitle);
}
else {
ShowWindow(m_list.GetHwnd(), SW_SHOW);
ShowWindow(m_list2.GetHwnd(), SW_HIDE);
- mir_sntprintf(m_title, SIZEOF(m_title), TranslateT("Channels on server"));
- SetWindowText(m_hwnd, m_title);
+ mir_sntprintf(newTitle, SIZEOF(newTitle), TranslateT("Channels on server"));
+ SetWindowText(m_hwnd, newTitle);
}
}
@@ -486,8 +486,6 @@ void CListDlg::OnJoin(CCtrlButton*) void CListDlg::UpdateList()
{
- GetWindowText(m_hwnd, m_title, 128);
-
int j = m_list.GetItemCount();
if (j > 0) {
LVITEM lvm;
|