From 1a345f8a80976969ecc5cedf9d6558ce4e66b468 Mon Sep 17 00:00:00 2001 From: "locka%iol.ie" Date: Fri, 7 Jun 2002 21:29:20 +0000 Subject: [PATCH] (On behalf of Steve Williams ) Add activate message to fix focus in text areas. b=148613 r=adamlock@netscape.com sr=rpotts@netscape.com a=asa@mozilla.org git-svn-id: svn://10.0.0.236/trunk@122896 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/embedding/tests/winEmbed/winEmbed.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/embedding/tests/winEmbed/winEmbed.cpp b/mozilla/embedding/tests/winEmbed/winEmbed.cpp index fc7ad49f5cb..cf5814485f6 100644 --- a/mozilla/embedding/tests/winEmbed/winEmbed.cpp +++ b/mozilla/embedding/tests/winEmbed/winEmbed.cpp @@ -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;