summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-07-13 20:29:49 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-07-13 20:29:49 +0000
commita350632ac5e95dc6f2db974ac8c62107a2abea34 (patch)
treea642d1f5d11e7688a3681747fd9fde903b2c3d0d /protocols
parentd4b6f40bf87b904f4f5bfe3d8e3862e57a66d897 (diff)
SkypeWeb: options improvements
git-svn-id: http://svn.miranda-ng.org/main/trunk@14555 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/SkypeWeb/src/skype_options.cpp7
-rw-r--r--protocols/SkypeWeb/src/skype_options.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_options.cpp b/protocols/SkypeWeb/src/skype_options.cpp
index 9f21c48e5b..f48b652c74 100644
--- a/protocols/SkypeWeb/src/skype_options.cpp
+++ b/protocols/SkypeWeb/src/skype_options.cpp
@@ -34,6 +34,7 @@ CSkypeOptionsMain::CSkypeOptionsMain(CSkypeProto *proto, int idDialog)
CreateLink(m_allasunread, "MarkMesUnread", DBVT_BYTE, 1);
CreateLink(m_place, "Place", _T(""));
CreateLink(m_usehostname, "UseHostName", DBVT_BYTE, 0);
+ m_usehostname.OnChange = Callback(this, &CSkypeOptionsMain::OnUsehostnameCheck);
}
void CSkypeOptionsMain::OnInitDialog()
@@ -42,6 +43,7 @@ void CSkypeOptionsMain::OnInitDialog()
m_skypename.SetTextA(ptrA(m_proto->getStringA(SKYPE_SETTINGS_ID)));
m_password.SetTextA(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, 20, 0);
SendMessage(m_group.GetHwnd(), EM_LIMITTEXT, 64, 0);
@@ -76,4 +78,9 @@ int CSkypeProto::OnOptionsInit(WPARAM wParam, LPARAM)
Options_AddPage(wParam, &odp);
return 0;
+}
+
+void CSkypeOptionsMain::OnUsehostnameCheck(CCtrlCheck* p)
+{
+ m_place.Enable(!m_usehostname.GetState());
} \ No newline at end of file
diff --git a/protocols/SkypeWeb/src/skype_options.h b/protocols/SkypeWeb/src/skype_options.h
index 6e3b0a8533..27174d62c4 100644
--- a/protocols/SkypeWeb/src/skype_options.h
+++ b/protocols/SkypeWeb/src/skype_options.h
@@ -35,6 +35,7 @@ protected:
void OnInitDialog();
void OnApply();
+ void OnUsehostnameCheck(CCtrlCheck*);
public:
static CDlgBase *CreateAccountManagerPage(void *param, HWND owner)