summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_options.cpp
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/SkypeWeb/src/skype_options.cpp
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/SkypeWeb/src/skype_options.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_options.cpp7
1 files changed, 7 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