diff options
author | Alexander Gluzsky <sss123next@list.ru> | 2016-04-11 06:58:50 +0000 |
---|---|---|
committer | Alexander Gluzsky <sss123next@list.ru> | 2016-04-11 06:58:50 +0000 |
commit | bee10e1391e35d6e920f894d7f9a3974d7654bb8 (patch) | |
tree | 49f3b60b09e426eb893f5cf99a9fc9c2efb1fbe9 /protocols/AimOscar/src/ui.cpp | |
parent | d66c315e6ee4f59215cefadd22a020b8661a4e57 (diff) |
aim:
few settings ui fixes
"clientlogin": few fixes //still does not work
git-svn-id: http://svn.miranda-ng.org/main/trunk@16626 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/AimOscar/src/ui.cpp')
-rwxr-xr-x | protocols/AimOscar/src/ui.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/protocols/AimOscar/src/ui.cpp b/protocols/AimOscar/src/ui.cpp index c8618cdf6f..8277b4596f 100755 --- a/protocols/AimOscar/src/ui.cpp +++ b/protocols/AimOscar/src/ui.cpp @@ -762,9 +762,10 @@ static INT_PTR CALLBACK options_dialog(HWND hwndDlg, UINT msg, WPARAM wParam, LP CheckDlgButton(hwndDlg, IDC_CLIENTLOGIN, ppro->getByte(AIM_KEY_CLIENTLOGIN, 1) ? BST_CHECKED : BST_UNCHECKED);//use clientlogin
{
HWND dssl = GetDlgItem(hwndDlg, IDC_DSSL);
- EnableWindow(dssl, ppro->getByte(AIM_KEY_CLIENTLOGIN, 1) ? true : false);
- CheckDlgButton(hwndDlg, IDC_DSSL, BST_CHECKED);
- ppro->setByte(AIM_KEY_DSSL, IsDlgButtonChecked(hwndDlg, IDC_DSSL) != 0);
+ bool clientlogin = ppro->getByte(AIM_KEY_CLIENTLOGIN, 1);
+ EnableWindow(dssl, clientlogin);
+ if(!clientlogin)
+ CheckDlgButton(hwndDlg, IDC_DSSL, BST_CHECKED);
}
CheckDlgButton(hwndDlg, IDC_FSC, ppro->getByte(AIM_KEY_FSC, 0) ? BST_CHECKED : BST_UNCHECKED);//Force Single Client
}
@@ -772,12 +773,6 @@ static INT_PTR CALLBACK options_dialog(HWND hwndDlg, UINT msg, WPARAM wParam, LP case WM_COMMAND:
switch (LOWORD(wParam)) {
- case IDC_DSSL:
- {
- SetDlgItemTextA(hwndDlg, IDC_HN, AIM_DEFAULT_SERVER);
- SetDlgItemInt(hwndDlg, IDC_PN, AIM_DEFAULT_PORT, FALSE);
- }
- break;
case IDC_SVRRESET:
@@ -798,7 +793,6 @@ static INT_PTR CALLBACK options_dialog(HWND hwndDlg, UINT msg, WPARAM wParam, LP {
HWND dssl = GetDlgItem(hwndDlg, IDC_DSSL);
EnableWindow(dssl, true);
- CheckDlgButton(hwndDlg, IDC_DSSL, BST_UNCHECKED);
}
else
{
|