From 3e1583072445a97fbd9dd223d8c8b702013ae1d6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 11 Apr 2015 23:02:48 +0000 Subject: minor fixes, code cleaning etc git-svn-id: http://svn.miranda-ng.org/main/trunk@12773 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_agent.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'protocols/JabberG/src/jabber_agent.cpp') diff --git a/protocols/JabberG/src/jabber_agent.cpp b/protocols/JabberG/src/jabber_agent.cpp index 6f6a81c182..5b6176bf86 100644 --- a/protocols/JabberG/src/jabber_agent.cpp +++ b/protocols/JabberG/src/jabber_agent.cpp @@ -34,7 +34,7 @@ class CAgentRegProgressDlg : public CJabberDlgBase CCtrlButton m_ok; public: - CAgentRegProgressDlg(CJabberProto* _ppro, HWND _owner) : + CAgentRegProgressDlg(CJabberProto *_ppro, HWND _owner) : CJabberDlgBase(_ppro, IDD_OPT_REGISTER, _owner, false), m_ok(this, IDOK) { @@ -44,7 +44,7 @@ public: virtual void OnInitDialog() { m_proto->m_hwndRegProgress = m_hwnd; - SetWindowTextA(m_hwnd, "Jabber Agent Registration"); + SetWindowText(m_hwnd, TranslateT("Jabber Agent Registration")); TranslateDialogDefault(m_hwnd); } @@ -55,8 +55,9 @@ public: SetDlgItemText(m_hwnd, IDC_REG_STATUS, TranslateT("No message")); else SetDlgItemText(m_hwnd, IDC_REG_STATUS, (TCHAR*)lParam); - if (wParam >= 0) - SendDlgItemMessage(m_hwnd, IDC_PROGRESS_REG, PBM_SETPOS, wParam, 0); + + SendDlgItemMessage(m_hwnd, IDC_PROGRESS_REG, PBM_SETPOS, wParam, 0); + if (wParam >= 100) m_ok.SetText(TranslateT("OK")); } @@ -85,7 +86,7 @@ class CAgentRegDlg : public CJabberDlgBase CCtrlButton m_submit; public: - CAgentRegDlg(CJabberProto* _ppro, TCHAR* _jid) : + CAgentRegDlg(CJabberProto *_ppro, TCHAR *_jid) : CJabberDlgBase(_ppro, IDD_FORM, NULL, false), m_submit(this, IDC_SUBMIT), m_jid(_jid), -- cgit v1.2.3