summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-08-29 08:00:35 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-08-29 08:00:35 +0000
commit9a78e73e06a8428448bd16cee7c33d4c70d10845 (patch)
treef25fbdc03cf9cb5031d373a2fae1cae7e6533263 /protocols/SkypeWeb/src
parent0d654f90b97c81a6cf9da37b6414959be9abbfb6 (diff)
SkypeWeb: change password link in settings
git-svn-id: http://svn.miranda-ng.org/main/trunk@15080 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src')
-rw-r--r--protocols/SkypeWeb/src/resource.h8
-rw-r--r--protocols/SkypeWeb/src/skype_options.cpp11
-rw-r--r--protocols/SkypeWeb/src/skype_options.h1
-rw-r--r--protocols/SkypeWeb/src/skype_proto.h1
4 files changed, 13 insertions, 8 deletions
diff --git a/protocols/SkypeWeb/src/resource.h b/protocols/SkypeWeb/src/resource.h
index eb58a41d1e..32ae5dfccd 100644
--- a/protocols/SkypeWeb/src/resource.h
+++ b/protocols/SkypeWeb/src/resource.h
@@ -1,6 +1,6 @@
//{{NO_DEPENDENCIES}}
-// Microsoft Visual C++ generated include file.
-// Used by D:\Others\SVN\MirandaNG\trunk\protocols\SkypeWeb\res\resource.rc
+// Включаемый файл, созданный в Microsoft Visual C++.
+// Используется d:\Others\SVN\MirandaNG\trunk\protocols\SkypeWeb\res\resource.rc
//
#define IDI_SKYPE 100
#define IDC_SKYPENAME 101
@@ -30,6 +30,8 @@
#define IDC_USEHOST 1035
#define IDC_CHECK1 1036
#define IDC_BBCODES 1036
+#define IDC_SYSLINK1 1038
+#define IDC_CHANGEPASS 1038
// Next default values for new objects
//
@@ -37,7 +39,7 @@
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 124
#define _APS_NEXT_COMMAND_VALUE 40001
-#define _APS_NEXT_CONTROL_VALUE 1037
+#define _APS_NEXT_CONTROL_VALUE 1039
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
diff --git a/protocols/SkypeWeb/src/skype_options.cpp b/protocols/SkypeWeb/src/skype_options.cpp
index 5e565a6755..5e388e1c05 100644
--- a/protocols/SkypeWeb/src/skype_options.cpp
+++ b/protocols/SkypeWeb/src/skype_options.cpp
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdafx.h"
CSkypeOptionsMain::CSkypeOptionsMain(CSkypeProto *proto, int idDialog)
- : CSkypeDlgBase(proto, idDialog, false),
+: CSkypeDlgBase(proto, idDialog, false),
m_skypename(this, IDC_SKYPENAME),
m_password(this, IDC_PASSWORD),
m_group(this, IDC_GROUP),
@@ -26,7 +26,8 @@ CSkypeOptionsMain::CSkypeOptionsMain(CSkypeProto *proto, int idDialog)
m_autosync(this, IDC_AUTOSYNC),
m_allasunread(this, IDC_MESASUREAD),
m_usehostname(this, IDC_USEHOST),
- m_usebb(this, IDC_BBCODES)
+ m_usebb(this, IDC_BBCODES),
+ m_link(this, IDC_CHANGEPASS, "https://login.skype.com/recovery/password-change") // TODO : ...?username=%username%
{
CreateLink(m_group, SKYPE_SETTINGS_GROUP, _T("Skype"));
CreateLink(m_autosync, "AutoSync", DBVT_BYTE, 1);
@@ -44,9 +45,9 @@ void CSkypeOptionsMain::OnInitDialog()
m_skypename.SetTextA(ptrA(m_proto->getStringA(SKYPE_SETTINGS_ID)));
m_password.SetTextA(pass_ptrA(m_proto->getStringA("Password")));
m_place.Enable(!m_proto->getBool("UseHostName", false));
- SendMessage(m_skypename.GetHwnd(), EM_LIMITTEXT, 32, 0);
- SendMessage(m_password.GetHwnd(), EM_LIMITTEXT, 128, 0);
- SendMessage(m_group.GetHwnd(), EM_LIMITTEXT, 64, 0);
+ m_skypename.SendMsg(EM_LIMITTEXT, 32, 0);
+ m_password.SendMsg(EM_LIMITTEXT, 128, 0);
+ m_group.SendMsg(EM_LIMITTEXT, 64, 0);
}
diff --git a/protocols/SkypeWeb/src/skype_options.h b/protocols/SkypeWeb/src/skype_options.h
index f7bd9711da..edb565abc3 100644
--- a/protocols/SkypeWeb/src/skype_options.h
+++ b/protocols/SkypeWeb/src/skype_options.h
@@ -29,6 +29,7 @@ private:
CCtrlCheck m_allasunread;
CCtrlCheck m_usehostname;
CCtrlCheck m_usebb;
+ CCtrlHyperlink m_link;
protected:
CSkypeOptionsMain(CSkypeProto *proto, int idDialog);
diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h
index da1ae3f713..be8ad8ef75 100644
--- a/protocols/SkypeWeb/src/skype_proto.h
+++ b/protocols/SkypeWeb/src/skype_proto.h
@@ -23,6 +23,7 @@ typedef void(CSkypeProto::*SkypeResponseWithArgCallback)(const NETLIBHTTPREQUEST
struct CSkypeProto : public PROTO < CSkypeProto >
{
+ friend CSkypeOptionsMain;
friend CSkypeGCCreateDlg;
//friend CSkypeChatroom;
//friend ChatUser;