Patch by Aric Stewart : user32: Implement handling of WM_INPUTLANGCHANGE. Updated header and made WIN_ListChildren global.

svn path=/trunk/; revision=38162
This commit is contained in:
James Tabor 2008-12-18 01:14:39 +00:00
parent 8a36d2a8ba
commit 46ef532ab0
3 changed files with 11 additions and 3 deletions

View file

@ -63,3 +63,5 @@ User32CreateWindowEx(DWORD dwExStyle,
HINSTANCE hInstance, HINSTANCE hInstance,
LPVOID lpParam, LPVOID lpParam,
BOOL Unicode); BOOL Unicode);
HWND* WIN_ListChildren (HWND hWndparent);

View file

@ -1574,8 +1574,15 @@ User32DefWindowProc(HWND hWnd,
case WM_INPUTLANGCHANGE: case WM_INPUTLANGCHANGE:
{ {
//FIXME: What to do? int count = 0;
return TRUE; HWND *win_array = WIN_ListChildren( hWnd );
if (!win_array)
break;
while (win_array[count])
SendMessageW( win_array[count++], WM_INPUTLANGCHANGE, wParam, lParam);
HeapFree(GetProcessHeap(),0,win_array);
break;
} }
case WM_ENDSESSION: case WM_ENDSESSION:

View file

@ -126,7 +126,6 @@ static HWND MDI_MoreWindowsDialog(HWND);
static LRESULT WINAPI MDIClientWndProcA( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam ); static LRESULT WINAPI MDIClientWndProcA( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam );
static LRESULT WINAPI MDIClientWndProcW( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam ); static LRESULT WINAPI MDIClientWndProcW( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam );
static
HWND* WIN_ListChildren (HWND hWndparent) HWND* WIN_ListChildren (HWND hWndparent)
{ {