(On behalf of Steve Williams <steve--w@dircon.co.uk>) Add activate message to fix focus in text areas. b=148613 r=adamlock@netscape.com sr=rpotts@netscape.com a=asa@mozilla.org

This commit is contained in:
locka%iol.ie 2002-06-07 21:29:20 +00:00
parent 82112378cd
commit 8e7e0b4a27

View File

@ -1097,6 +1097,9 @@ nativeWindow WebBrowserChromeUI::CreateNativeWindow(nsIWebBrowserChrome* chrome)
SetWindowLong(hwndBrowser, GWL_USERDATA, (LONG)chrome); // save the browser LONG_PTR.
SetWindowLong(hwndBrowser, GWL_STYLE, GetWindowLong(hwndBrowser, GWL_STYLE) | WS_CLIPCHILDREN);
// Activate the window
PostMessage(hwndDialog, WM_ACTIVATE, WA_ACTIVE, 0);
gDialogCount++;
return hwndBrowser;