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/res/resource.rc | 7 +++++-- protocols/SkypeWeb/src/resource.h | 4 +++- protocols/SkypeWeb/src/skype_options.cpp | 5 +++-- protocols/SkypeWeb/src/skype_options.h | 1 + 4 files changed, 12 insertions(+), 5 deletions(-) (limited to 'protocols') diff --git a/protocols/SkypeWeb/res/resource.rc b/protocols/SkypeWeb/res/resource.rc index 6c0ac9776e..4fa2c21c38 100644 --- a/protocols/SkypeWeb/res/resource.rc +++ b/protocols/SkypeWeb/res/resource.rc @@ -171,10 +171,13 @@ BEGIN EDITTEXT IDC_GROUP,81,49,217,12,ES_AUTOHSCROLL GROUPBOX "Others",IDC_STATIC,5,79,298,65 CONTROL "Automatic messages synchronization",IDC_AUTOSYNC,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,89,282,10 - CONTROL "Use local time for received messages",IDC_LOCALTIME,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,100,282,10 - CONTROL "Always notify as unread for all incoming message",IDC_MESASUREAD,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,112,209,10 + CONTROL "Use local time for received messages",IDC_LOCALTIME, + "Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,100,282,10 + CONTROL "Always notify as unread for all incoming message",IDC_MESASUREAD, + "Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,112,209,10 EDITTEXT IDC_PLACE,81,124,109,14,ES_AUTOHSCROLL LTEXT "Place:",IDC_STATIC,13,127,33,9 + CONTROL "Use hostname",IDC_USEHOST,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,203,126,89,10 END IDD_PASSWORD_EDITOR DIALOGEX 0, 0, 209, 75 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