mirror of
https://github.com/reactos/reactos.git
synced 2025-07-26 23:23:39 +00:00
[NETCFGX] Create only one "Alternative Configuration" tab
- Check for the presence of the second tab. - Remove unnecessary checks for checked radiobuttons. CORE-19328
This commit is contained in:
parent
bb7661312e
commit
8f349ab3c2
1 changed files with 10 additions and 16 deletions
|
@ -2648,7 +2648,7 @@ TcpipBasicDlg(
|
||||||
switch (LOWORD(wParam))
|
switch (LOWORD(wParam))
|
||||||
{
|
{
|
||||||
case IDC_USEDHCP:
|
case IDC_USEDHCP:
|
||||||
if (IsDlgButtonChecked(hwndDlg, IDC_USEDHCP) == BST_CHECKED)
|
if (SendMessageW(GetParent(hwndDlg), PSM_INDEXTOID, 1, 0) == 0)
|
||||||
{
|
{
|
||||||
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
||||||
SendDlgItemMessageW(hwndDlg, IDC_IPADDR, IPM_CLEARADDRESS, 0, 0);
|
SendDlgItemMessageW(hwndDlg, IDC_IPADDR, IPM_CLEARADDRESS, 0, 0);
|
||||||
|
@ -2662,7 +2662,7 @@ TcpipBasicDlg(
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case IDC_NODHCP:
|
case IDC_NODHCP:
|
||||||
if (IsDlgButtonChecked(hwndDlg, IDC_NODHCP) == BST_CHECKED)
|
if (SendMessageW(GetParent(hwndDlg), PSM_INDEXTOID, 1, 0) != 0)
|
||||||
{
|
{
|
||||||
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
||||||
EnableWindow(GetDlgItem(hwndDlg, IDC_IPADDR), TRUE);
|
EnableWindow(GetDlgItem(hwndDlg, IDC_IPADDR), TRUE);
|
||||||
|
@ -2680,22 +2680,16 @@ TcpipBasicDlg(
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case IDC_AUTODNS:
|
case IDC_AUTODNS:
|
||||||
if (IsDlgButtonChecked(hwndDlg, IDC_AUTODNS) == BST_CHECKED)
|
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
||||||
{
|
SendDlgItemMessageW(hwndDlg, IDC_DNS1, IPM_CLEARADDRESS, 0, 0);
|
||||||
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
SendDlgItemMessageW(hwndDlg, IDC_DNS2, IPM_CLEARADDRESS, 0, 0);
|
||||||
SendDlgItemMessageW(hwndDlg, IDC_DNS1, IPM_CLEARADDRESS, 0, 0);
|
EnableWindow(GetDlgItem(hwndDlg, IDC_DNS1), FALSE);
|
||||||
SendDlgItemMessageW(hwndDlg, IDC_DNS2, IPM_CLEARADDRESS, 0, 0);
|
EnableWindow(GetDlgItem(hwndDlg, IDC_DNS2), FALSE);
|
||||||
EnableWindow(GetDlgItem(hwndDlg, IDC_DNS1), FALSE);
|
|
||||||
EnableWindow(GetDlgItem(hwndDlg, IDC_DNS2), FALSE);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case IDC_FIXEDDNS:
|
case IDC_FIXEDDNS:
|
||||||
if (IsDlgButtonChecked(hwndDlg, IDC_FIXEDDNS) == BST_CHECKED)
|
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
||||||
{
|
EnableWindow(GetDlgItem(hwndDlg, IDC_DNS1), TRUE);
|
||||||
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
EnableWindow(GetDlgItem(hwndDlg, IDC_DNS2), TRUE);
|
||||||
EnableWindow(GetDlgItem(hwndDlg, IDC_DNS1), TRUE);
|
|
||||||
EnableWindow(GetDlgItem(hwndDlg, IDC_DNS2), TRUE);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case IDC_ADVANCED:
|
case IDC_ADVANCED:
|
||||||
LaunchAdvancedTcpipSettings(hwndDlg, (TcpipConfNotifyImpl*)GetWindowLongPtr(hwndDlg, DWLP_USER));
|
LaunchAdvancedTcpipSettings(hwndDlg, (TcpipConfNotifyImpl*)GetWindowLongPtr(hwndDlg, DWLP_USER));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue