From 04f017d167b3d8dee55659022fc6aa89222baa7b Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Wed, 15 Jul 2015 09:41:16 +0000 Subject: oops git-svn-id: http://svn.miranda-ng.org/main/trunk@14564 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_dialogs.cpp | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 protocols/SkypeWeb/src/skype_dialogs.cpp (limited to 'protocols/SkypeWeb/src/skype_dialogs.cpp') diff --git a/protocols/SkypeWeb/src/skype_dialogs.cpp b/protocols/SkypeWeb/src/skype_dialogs.cpp new file mode 100644 index 0000000000..78f612419d --- /dev/null +++ b/protocols/SkypeWeb/src/skype_dialogs.cpp @@ -0,0 +1,43 @@ +/* +Copyright (c) 2015 Miranda NG project (http://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 the Free Software Foundation version 2 +of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + +#include "stdafx.h" + +//CSkypeInvideDlg + +CSkypeInviteDlg::CSkypeInviteDlg(CSkypeProto *proto) : + CSkypeDlgBase(proto, IDD_GC_INVITE, false), m_ok(this, IDOK), m_cancel(this, IDCANCEL), m_combo(this, IDC_CONTACT) +{ + m_ok.OnClick = Callback(this, &CSkypeInviteDlg::btnOk_OnOk); +} + +void CSkypeInviteDlg::OnInitDialog() +{ + for (MCONTACT hContact = db_find_first(m_proto->m_szModuleName); hContact; hContact = db_find_next(hContact, m_proto->m_szModuleName)) + { + if (!m_proto->isChatRoom(hContact)) + { + TCHAR *ptszNick = pcli->pfnGetContactDisplayName(hContact, 0); + m_combo.AddString(ptszNick, hContact); + } + } +} +void CSkypeInviteDlg::btnOk_OnOk(CCtrlButton*) +{ + m_hContact = m_combo.GetItemData(m_combo.GetCurSel()); + EndDialog(m_hwnd, 1); +} -- cgit v1.2.3