mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[NETCFGX] Fix TCP/IP alternate radiobutton behaviour (#6039)
Based on KRosUser's netaltconf_fix.patch. CORE-19336
This commit is contained in:
parent
3b2fdc56bd
commit
d74d4e0395
1 changed files with 8 additions and 8 deletions
|
@ -2223,7 +2223,7 @@ TcpipAltConfDlg(
|
|||
{
|
||||
TcpipConfNotifyImpl *This;
|
||||
LPPROPSHEETPAGE page;
|
||||
BOOL bEnabled;
|
||||
BOOL bNoDHCP;
|
||||
|
||||
switch (uMsg)
|
||||
{
|
||||
|
@ -2245,19 +2245,19 @@ TcpipAltConfDlg(
|
|||
{
|
||||
if (HIWORD(wParam) == BN_CLICKED)
|
||||
{
|
||||
bEnabled = (IsDlgButtonChecked(hwndDlg, IDC_USEDHCP) == BST_CHECKED);
|
||||
if (bEnabled)
|
||||
bNoDHCP = (IsDlgButtonChecked(hwndDlg, IDC_NODHCP) == BST_CHECKED);
|
||||
if (bNoDHCP)
|
||||
{
|
||||
SendDlgItemMessageW(hwndDlg, IDC_IPADDR, IPM_CLEARADDRESS, 0, 0);
|
||||
SendDlgItemMessageW(hwndDlg, IDC_SUBNETMASK, IPM_CLEARADDRESS, 0, 0);
|
||||
SendDlgItemMessageW(hwndDlg, IDC_DEFGATEWAY, IPM_CLEARADDRESS, 0, 0);
|
||||
}
|
||||
|
||||
EnableWindow(GetDlgItem(hwndDlg, IDC_IPADDR), bEnabled);
|
||||
EnableWindow(GetDlgItem(hwndDlg, IDC_SUBNETMASK), bEnabled);
|
||||
EnableWindow(GetDlgItem(hwndDlg, IDC_DEFGATEWAY), bEnabled);
|
||||
EnableWindow(GetDlgItem(hwndDlg, IDC_DNS1), bEnabled);
|
||||
EnableWindow(GetDlgItem(hwndDlg, IDC_DNS2), bEnabled);
|
||||
EnableWindow(GetDlgItem(hwndDlg, IDC_IPADDR), bNoDHCP);
|
||||
EnableWindow(GetDlgItem(hwndDlg, IDC_SUBNETMASK), bNoDHCP);
|
||||
EnableWindow(GetDlgItem(hwndDlg, IDC_DEFGATEWAY), bNoDHCP);
|
||||
EnableWindow(GetDlgItem(hwndDlg, IDC_DNS1), bNoDHCP);
|
||||
EnableWindow(GetDlgItem(hwndDlg, IDC_DNS2), bNoDHCP);
|
||||
|
||||
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue