diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-07-15 09:41:16 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-07-15 09:41:16 +0000 |
commit | 04f017d167b3d8dee55659022fc6aa89222baa7b (patch) | |
tree | e9feddcb0ac36c0b8e6ed8bf84cf59fc7e883ea7 /protocols | |
parent | 1aa8530b2d4dfa6d6f424903fc67c87682a0267e (diff) |
oops
git-svn-id: http://svn.miranda-ng.org/main/trunk@14564 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/SkypeWeb/src/skype_dialogs.cpp | 43 |
1 files changed, 43 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
+*/
+
+#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);
+}
|