diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-04-10 07:00:08 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-04-10 07:00:08 +0000 |
commit | 2db0f15d4e99fc869402268195fdf63d6131b34f (patch) | |
tree | 3b05859356db9463949244cf12f3e81d89131e86 /protocols/Skype | |
parent | 3dc0d9b0b7c30ea2f77d74c4ce5b6ccd67bd525c (diff) |
Skype options fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@4405 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype')
-rw-r--r-- | protocols/Skype/res/Resource.rc | 2 | ||||
-rw-r--r-- | protocols/Skype/src/skype_dialogs.cpp | 8 | ||||
-rw-r--r-- | protocols/Skype/src/skype_proto.h | 38 |
3 files changed, 24 insertions, 24 deletions
diff --git a/protocols/Skype/res/Resource.rc b/protocols/Skype/res/Resource.rc index 1087a57104..3f31679407 100644 --- a/protocols/Skype/res/Resource.rc +++ b/protocols/Skype/res/Resource.rc @@ -224,7 +224,7 @@ BEGIN CONTROL "Use ports 80 and 443 as alternative incoming",IDC_USE_ALT_PORTS,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,97,276,10
PUSHBUTTON "Register new account",IDC_REGISTER,204,17,87,14,WS_DISABLED
- PUSHBUTTON "Chande password",IDC_CHANGE_PWD,204,33,87,14,WS_DISABLED
+ PUSHBUTTON "Change password",IDC_CHANGE_PWD,204,33,87,14,WS_DISABLED
END
diff --git a/protocols/Skype/src/skype_dialogs.cpp b/protocols/Skype/src/skype_dialogs.cpp index 3869441fc9..f6b6740ff7 100644 --- a/protocols/Skype/src/skype_dialogs.cpp +++ b/protocols/Skype/src/skype_dialogs.cpp @@ -44,11 +44,11 @@ INT_PTR CALLBACK CSkypeProto::SkypeMainOptionsProc(HWND hwnd, UINT message, WPAR SendMessage(GetDlgItem(hwnd, IDC_SL), EM_SETREADONLY, 1, 0);
SendMessage(GetDlgItem(hwnd, IDC_PW), EM_SETREADONLY, 1, 0);
SendMessage(GetDlgItem(hwnd, IDC_PORT), EM_SETREADONLY, 1, 0);
- SendMessage(GetDlgItem(hwnd, IDC_USE_ALT_PORTS), EM_SETREADONLY, 1, 0);
+ EnableWindow(GetDlgItem(hwnd, IDC_USE_ALT_PORTS), FALSE);
EnableWindow(GetDlgItem(hwnd, IDC_REGISTER), FALSE);
EnableWindow(GetDlgItem(hwnd, IDC_CHANGE_PWD), TRUE);
}
- else if (proto->GetSettingWord("Status") > 0)
+ else if (proto->GetSettingWord("Status") > ID_STATUS_OFFLINE)
{
EnableWindow(GetDlgItem(hwnd, IDC_REGISTER), FALSE);
}
@@ -63,7 +63,7 @@ INT_PTR CALLBACK CSkypeProto::SkypeMainOptionsProc(HWND hwnd, UINT message, WPAR {
if ((HIWORD(wParam) != EN_CHANGE || (HWND)lParam != GetFocus())) return 0;
- if ( !proto->IsOnline() && proto->GetSettingWord("Status") == 0)
+ if (!proto->IsOnline() && proto->GetSettingWord("Status") <= ID_STATUS_OFFLINE)
{
char sid[128];
GetDlgItemTextA(hwnd, IDC_SL, sid, SIZEOF(sid));
@@ -151,7 +151,7 @@ INT_PTR CALLBACK CSkypeProto::SkypeMainOptionsProc(HWND hwnd, UINT message, WPAR BOOL error;
int port = GetDlgItemInt(hwnd, IDC_PORT, &error, FALSE);
proto->SetSettingWord("Port", port);
- proto->SetSettingByte("UseAlternativePorts", IsDlgButtonChecked(hwnd, IDC_USE_ALT_PORTS) > 0);
+ proto->SetSettingByte("UseAlternativePorts", (BYTE)IsDlgButtonChecked(hwnd, IDC_USE_ALT_PORTS));
}
return TRUE;
diff --git a/protocols/Skype/src/skype_proto.h b/protocols/Skype/src/skype_proto.h index 5e38e73c2a..7ac8b89ff0 100644 --- a/protocols/Skype/src/skype_proto.h +++ b/protocols/Skype/src/skype_proto.h @@ -180,25 +180,25 @@ struct PasswordChangeBoxParam }
};
-struct FileTransfer -{ - CSkypeProto* ppro; - SEBinary guid; - CTransfer::Refs transfers; - //char *who; - //char *msg; - //char *ftoken; - //char *relay; - //HANDLE hContact; - //int cancel; - //char *url; - //HANDLE hWaitEvent; - //DWORD action; - //int y7; - ////YList *files; - //PROTOFILETRANSFERSTATUS pfts; - - FileTransfer(CSkypeProto* ppro) { this->ppro = ppro; } +struct FileTransfer
+{
+ CSkypeProto* ppro;
+ SEBinary guid;
+ CTransfer::Refs transfers;
+ //char *who;
+ //char *msg;
+ //char *ftoken;
+ //char *relay;
+ //HANDLE hContact;
+ //int cancel;
+ //char *url;
+ //HANDLE hWaitEvent;
+ //DWORD action;
+ //int y7;
+ ////YList *files;
+ //PROTOFILETRANSFERSTATUS pfts;
+
+ FileTransfer(CSkypeProto* ppro) { this->ppro = ppro; }
};
struct CSkypeProto : public PROTO_INTERFACE
|