Send a LBN_SELCHANGE notification after selecting the first network component entry...
authorColin Finck <colin@reactos.org>
Sat, 18 Aug 2007 14:03:12 +0000 (14:03 +0000)
committerColin Finck <colin@reactos.org>
Sat, 18 Aug 2007 14:03:12 +0000 (14:03 +0000)
Patch by Gregor Brunmar (gregor DOT brunmar AT home DOT se)
See issue #2577 for more details.

svn path=/trunk/; revision=28397

reactos/dll/cpl/ncpa/ncpa.c

index 1626305..1f13f5f 100644 (file)
@@ -277,6 +277,7 @@ NICPropertyPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
                        EnumRegKeys(NICPropertyProtocolCallback,hwndDlg,HKEY_LOCAL_MACHINE,_T("System\\CurrentControlSet\\Control\\Network\\{4D36E975-E325-11CE-BFC1-08002BE10318}"));
 
                        SendDlgItemMessage(hwndDlg, IDC_COMPONENTSLIST, LB_SETCURSEL, 0, 0);
+                       SendMessage(hwndDlg, WM_COMMAND, MAKEWPARAM(IDC_COMPONENTSLIST, LBN_SELCHANGE), 0);
                }
                break;
        case WM_COMMAND:
@@ -806,3 +807,4 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
        return TRUE;
 }
 
+