diff options
author | George Hazan <george.hazan@gmail.com> | 2012-09-21 14:08:42 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-09-21 14:08:42 +0000 |
commit | b4523bc74a6afcc0428034f8b2726e1b2e226475 (patch) | |
tree | f08f1338e76d8bc3c63958050589b7dbf293f8a7 /src/modules/netlib/netlibopts.cpp | |
parent | fece4176cb07bfe47dd5091a9c0eb6d69a6a107e (diff) |
- fix for the Netlib_Logf event
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@1623 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/netlib/netlibopts.cpp')
-rw-r--r-- | src/modules/netlib/netlibopts.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/modules/netlib/netlibopts.cpp b/src/modules/netlib/netlibopts.cpp index 86fc34a6b5..582669eb0d 100644 --- a/src/modules/netlib/netlibopts.cpp +++ b/src/modules/netlib/netlibopts.cpp @@ -74,13 +74,13 @@ static const WORD oftenProxyPorts[] = {1080, 1080, 1080, 8080, 8080, 8080}; static void ShowMultipleControls(HWND hwndDlg, const UINT *controls, int cControls, int state)
{
int i;
- for (i=0;i<cControls;i++) ShowWindow(GetDlgItem(hwndDlg, controls[i]), state);
+ for (i=0;i<cControls;i++) ShowWindow( GetDlgItem(hwndDlg, controls[i]), state);
}
static void EnableMultipleControls(HWND hwndDlg, const UINT *controls, int cControls, int state)
{
int i;
- for (i=0;i<cControls;i++) EnableWindow(GetDlgItem(hwndDlg, controls[i]), state);
+ for (i=0;i<cControls;i++) EnableWindow( GetDlgItem(hwndDlg, controls[i]), state);
}
static void AddProxyTypeItem(HWND hwndDlg, int type, int selectType)
@@ -173,7 +173,7 @@ static void ChangeSettingIntByCheckbox(HWND hwndDlg, UINT ctrlId, int iUser, int static void ChangeSettingStringByEdit(HWND hwndDlg, UINT ctrlId, int iUser, int memberOffset)
{
- int newValueLen = GetWindowTextLength(GetDlgItem(hwndDlg, ctrlId));
+ int newValueLen = GetWindowTextLength( GetDlgItem(hwndDlg, ctrlId));
char *szNewValue = (char*)mir_alloc(newValueLen+1);
GetDlgItemTextA(hwndDlg, ctrlId, szNewValue, newValueLen+1);
if (iUser == -1) {
@@ -366,13 +366,13 @@ static INT_PTR CALLBACK DlgProcNetlibOpts(HWND hwndDlg, UINT msg, WPARAM wParam, enableUser = enablePass = 1;
}
}
- EnableWindow(GetDlgItem(hwndDlg, IDC_PROXYAUTH), enableAuth);
- EnableWindow(GetDlgItem(hwndDlg, IDC_STATIC31), enableUser);
- EnableWindow(GetDlgItem(hwndDlg, IDC_PROXYUSER), enableUser);
- EnableWindow(GetDlgItem(hwndDlg, IDC_STATIC32), enablePass);
- EnableWindow(GetDlgItem(hwndDlg, IDC_PROXYPASS), enablePass);
- EnableWindow(GetDlgItem(hwndDlg, IDC_PROXYHOST), enableServer);
- EnableWindow(GetDlgItem(hwndDlg, IDC_PROXYPORT), enableServer);
+ EnableWindow( GetDlgItem(hwndDlg, IDC_PROXYAUTH), enableAuth);
+ EnableWindow( GetDlgItem(hwndDlg, IDC_STATIC31), enableUser);
+ EnableWindow( GetDlgItem(hwndDlg, IDC_PROXYUSER), enableUser);
+ EnableWindow( GetDlgItem(hwndDlg, IDC_STATIC32), enablePass);
+ EnableWindow( GetDlgItem(hwndDlg, IDC_PROXYPASS), enablePass);
+ EnableWindow( GetDlgItem(hwndDlg, IDC_PROXYHOST), enableServer);
+ EnableWindow( GetDlgItem(hwndDlg, IDC_PROXYPORT), enableServer);
}
else EnableMultipleControls(hwndDlg, useProxyControls, SIZEOF(useProxyControls), FALSE);
EnableMultipleControls(hwndDlg, specifyPortsControls, SIZEOF(specifyPortsControls), IsDlgButtonChecked(hwndDlg, IDC_SPECIFYPORTS) != BST_UNCHECKED);
@@ -468,7 +468,7 @@ static INT_PTR CALLBACK DlgProcNetlibOpts(HWND hwndDlg, UINT msg, WPARAM wParam, ChangeSettingStringByEdit(hwndDlg, LOWORD(wParam), iUser, offsetof(NETLIBUSERSETTINGS, szOutgoingPorts));
break;
}
- ShowWindow(GetDlgItem(hwndDlg, IDC_RECONNECTREQD), SW_SHOW);
+ ShowWindow( GetDlgItem(hwndDlg, IDC_RECONNECTREQD), SW_SHOW);
SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
break;
|