From 2def01042331e4a5a9cfd21b600dc0fcc1a198b0 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sat, 6 Jun 2015 19:12:49 +0000 Subject: SkypeWeb: Checkbox for "use hostname as place". git-svn-id: http://svn.miranda-ng.org/main/trunk@14028 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/resource.h | 4 +++- protocols/SkypeWeb/src/skype_options.cpp | 5 +++-- protocols/SkypeWeb/src/skype_options.h | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'protocols/SkypeWeb/src') diff --git a/protocols/SkypeWeb/src/resource.h b/protocols/SkypeWeb/src/resource.h index 43bc008820..cf253ef0ef 100644 --- a/protocols/SkypeWeb/src/resource.h +++ b/protocols/SkypeWeb/src/resource.h @@ -27,6 +27,8 @@ #define IDC_CONTACT 1032 #define IDC_MESASUREAD 1033 #define IDC_PLACE 1034 +#define IDC_CHECK1 1035 +#define IDC_USEHOST 1035 // Next default values for new objects // @@ -34,7 +36,7 @@ #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 124 #define _APS_NEXT_COMMAND_VALUE 40001 -#define _APS_NEXT_CONTROL_VALUE 1035 +#define _APS_NEXT_CONTROL_VALUE 1036 #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 5da691d63e..a67545114a 100644 --- a/protocols/SkypeWeb/src/skype_options.cpp +++ b/protocols/SkypeWeb/src/skype_options.cpp @@ -25,13 +25,15 @@ CSkypeOptionsMain::CSkypeOptionsMain(CSkypeProto *proto, int idDialog) m_autosync(this, IDC_AUTOSYNC), m_localtime(this, IDC_LOCALTIME), m_allasunread(this, IDC_MESASUREAD), - m_place(this, IDC_PLACE) + m_place(this, IDC_PLACE), + m_usehostname(this, IDC_USEHOST) { CreateLink(m_group, SKYPE_SETTINGS_GROUP, _T("Skype")); CreateLink(m_autosync, "AutoSync", DBVT_BYTE, 1); CreateLink(m_localtime, "UseLocalTime", DBVT_BYTE, 0); CreateLink(m_allasunread, "MarkMesUnread", DBVT_BYTE, 1); CreateLink(m_place, "Place", _T("")); + CreateLink(m_usehostname, "UseHostName", DBVT_BYTE, 0); } void CSkypeOptionsMain::OnInitDialog() @@ -40,7 +42,6 @@ void CSkypeOptionsMain::OnInitDialog() m_skypename.SetTextA(ptrA(m_proto->getStringA(SKYPE_SETTINGS_ID))); m_password.SetTextA(ptrA(m_proto->getStringA("Password"))); - SendMessage(m_skypename.GetHwnd(), EM_LIMITTEXT, 32, 0); SendMessage(m_password.GetHwnd(), EM_LIMITTEXT, 20, 0); SendMessage(m_group.GetHwnd(), EM_LIMITTEXT, 64, 0); diff --git a/protocols/SkypeWeb/src/skype_options.h b/protocols/SkypeWeb/src/skype_options.h index 35a2a743e6..6e3b0a8533 100644 --- a/protocols/SkypeWeb/src/skype_options.h +++ b/protocols/SkypeWeb/src/skype_options.h @@ -28,6 +28,7 @@ private: CCtrlCheck m_autosync; CCtrlCheck m_localtime; CCtrlCheck m_allasunread; + CCtrlCheck m_usehostname; protected: CSkypeOptionsMain(CSkypeProto *proto, int idDialog); -- cgit v1.2.3