diff options
Diffstat (limited to 'src/core/stduserinfo')
-rw-r--r-- | src/core/stduserinfo/src/contactinfo.cpp | 2 | ||||
-rw-r--r-- | src/core/stduserinfo/src/main.cpp | 2 | ||||
-rw-r--r-- | src/core/stduserinfo/src/stdafx.h | 2 | ||||
-rw-r--r-- | src/core/stduserinfo/src/stdinfo.cpp | 2 | ||||
-rw-r--r-- | src/core/stduserinfo/src/userinfo.cpp | 19 | ||||
-rw-r--r-- | src/core/stduserinfo/src/utils.h | 2 | ||||
-rw-r--r-- | src/core/stduserinfo/src/version.h | 2 |
7 files changed, 16 insertions, 15 deletions
diff --git a/src/core/stduserinfo/src/contactinfo.cpp b/src/core/stduserinfo/src/contactinfo.cpp index 7397d8e771..8756991500 100644 --- a/src/core/stduserinfo/src/contactinfo.cpp +++ b/src/core/stduserinfo/src/contactinfo.cpp @@ -2,7 +2,7 @@ Miranda NG: the free IM client for Microsoft* Windows*
-Copyright (C) 2012-24 Miranda NG team (https://miranda-ng.org),
+Copyright (C) 2012-25 Miranda NG team (https://miranda-ng.org),
Copyright (c) 2000-12 Miranda IM project,
all portions of this codebase are copyrighted to the people
listed in contributors.txt.
diff --git a/src/core/stduserinfo/src/main.cpp b/src/core/stduserinfo/src/main.cpp index 44d3f52cdf..8d9bc4241e 100644 --- a/src/core/stduserinfo/src/main.cpp +++ b/src/core/stduserinfo/src/main.cpp @@ -2,7 +2,7 @@ Standard User Info plugin for Miranda NG
-Copyright (C) 2012-24 Miranda NG team (https://miranda-ng.org)
+Copyright (C) 2012-25 Miranda NG team (https://miranda-ng.org)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/src/core/stduserinfo/src/stdafx.h b/src/core/stduserinfo/src/stdafx.h index 75bb3426d0..aa5452e915 100644 --- a/src/core/stduserinfo/src/stdafx.h +++ b/src/core/stduserinfo/src/stdafx.h @@ -2,7 +2,7 @@ Miranda NG: the free IM client for Microsoft* Windows*
-Copyright (C) 2012-24 Miranda NG team (https://miranda-ng.org),
+Copyright (C) 2012-25 Miranda NG team (https://miranda-ng.org),
Copyright (c) 2000-12 Miranda IM project,
all portions of this codebase are copyrighted to the people
listed in contributors.txt.
diff --git a/src/core/stduserinfo/src/stdinfo.cpp b/src/core/stduserinfo/src/stdinfo.cpp index a2a72e1d80..39872591c2 100644 --- a/src/core/stduserinfo/src/stdinfo.cpp +++ b/src/core/stduserinfo/src/stdinfo.cpp @@ -2,7 +2,7 @@ Miranda NG: the free IM client for Microsoft* Windows*
-Copyright (C) 2012-24 Miranda NG team (https://miranda-ng.org),
+Copyright (C) 2012-25 Miranda NG team (https://miranda-ng.org),
Copyright (c) 2000-12 Miranda IM project,
all portions of this codebase are copyrighted to the people
listed in contributors.txt.
diff --git a/src/core/stduserinfo/src/userinfo.cpp b/src/core/stduserinfo/src/userinfo.cpp index 1a6d7a150f..ae5fcfe62b 100644 --- a/src/core/stduserinfo/src/userinfo.cpp +++ b/src/core/stduserinfo/src/userinfo.cpp @@ -2,7 +2,7 @@ Miranda NG: the free IM client for Microsoft* Windows*
-Copyright (C) 2012-24 Miranda NG team (https://miranda-ng.org),
+Copyright (C) 2012-25 Miranda NG team (https://miranda-ng.org),
Copyright (c) 2000-12 Miranda IM project,
all portions of this codebase are copyrighted to the people
listed in contributors.txt.
@@ -234,7 +234,7 @@ class CUserInfoDlg : public CDlgBase if (Proto_GetStatus(szProto) < ID_STATUS_ONLINE)
btnUpdate.Disable();
else
- btnUpdate.Enable(!IsWindowVisible(GetDlgItem(m_hwnd, IDC_UPDATING)));
+ btnUpdate.Enable(!IsWindowVisible(m_updating.GetHwnd()));
}
}
@@ -263,7 +263,7 @@ class CUserInfoDlg : public CDlgBase }
}
- CCtrlBase m_place;
+ CCtrlBase m_place, m_updating;
CCtrlButton btnUpdate;
CCtrlTreeView m_tree;
CTimer updateTimer;
@@ -277,6 +277,7 @@ public: m_tree(this, IDC_PAGETREE),
m_place(this, IDC_TABS),
btnUpdate(this, IDC_UPDATE),
+ m_updating(this, IDC_UPDATING),
updateTimer(this, 1)
{
SetMinSize(480, 382);
@@ -313,13 +314,13 @@ public: //////////////////////////////////////////////////////////////////////
m_updateAnimFrame = 0;
- GetDlgItemText(m_hwnd, IDC_UPDATING, m_szUpdating, _countof(m_szUpdating));
+ m_updating.GetText(m_szUpdating, _countof(m_szUpdating));
CheckOnline();
if (!CallContactService(m_hContact, PS_GETINFO, SGIF_ONOPEN)) {
btnUpdate.Disable();
updateTimer.Start(100);
}
- else ShowWindow(GetDlgItem(m_hwnd, IDC_UPDATING), SW_HIDE);
+ else m_updating.Hide();
return true;
}
@@ -450,7 +451,7 @@ public: /* if they're not gonna send any more ACK's don't let that mean we should crash */
if (!ack->hProcess && !ack->lParam) {
- ShowWindow(GetDlgItem(m_hwnd, IDC_UPDATING), SW_HIDE);
+ m_updating.Hide();
updateTimer.Stop();
CheckOnline();
break;
@@ -468,7 +469,7 @@ public: break;
if (i == (INT_PTR)ack->hProcess) {
- ShowWindow(GetDlgItem(m_hwnd, IDC_UPDATING), SW_HIDE);
+ m_updating.Hide();
updateTimer.Stop();
CheckOnline();
}
@@ -552,7 +553,7 @@ public: if (hContact)
if (!CallContactService(hContact, PS_GETINFO)) {
btnUpdate.Disable();
- ShowWindow(GetDlgItem(m_hwnd, IDC_UPDATING), SW_SHOW);
+ m_updating.Show();
updateTimer.Start(100);
}
}
@@ -561,7 +562,7 @@ public: {
wchar_t str[128];
mir_snwprintf(str, L"%.*s%s%.*s", m_updateAnimFrame % 10, L".........", m_szUpdating, m_updateAnimFrame % 10, L".........");
- SetDlgItemText(m_hwnd, IDC_UPDATING, str);
+ m_updating.SetText(str);
if (++m_updateAnimFrame == UPDATEANIMFRAMES)
m_updateAnimFrame = 0;
}
diff --git a/src/core/stduserinfo/src/utils.h b/src/core/stduserinfo/src/utils.h index 17be36bc91..5716f0d8c5 100644 --- a/src/core/stduserinfo/src/utils.h +++ b/src/core/stduserinfo/src/utils.h @@ -2,7 +2,7 @@ Standard User Info plugin for Miranda NG
-Copyright (C) 2012-24 Miranda NG team (https://miranda-ng.org)
+Copyright (C) 2012-25 Miranda NG team (https://miranda-ng.org)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/src/core/stduserinfo/src/version.h b/src/core/stduserinfo/src/version.h index 4d94a3db73..bd3abd4880 100644 --- a/src/core/stduserinfo/src/version.h +++ b/src/core/stduserinfo/src/version.h @@ -8,4 +8,4 @@ #define __DESCRIPTION "Core module for providing user information."
#define __AUTHOR "Miranda NG team"
#define __AUTHORWEB "https://miranda-ng.org/p/StdUserInfo"
-#define __COPYRIGHT "© 2012-24 Miranda NG team"
+#define __COPYRIGHT "© 2012-25 Miranda NG team"
|