Bug 5986 - BidiUtil handling of WM_INPUTLANGCHANGE needs to be fixed
Summary: BidiUtil handling of WM_INPUTLANGCHANGE needs to be fixed
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 98
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Lynne Kues CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-15 17:01 EST by Lynne Kues CLA
Modified: 2001-11-21 11:39 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lynne Kues CLA 2001-11-15 17:01:52 EST
The code that handles WM_INPUTLANGCHANGE (i.e., the language listener code that 
can be hooked to receive keyboard language changes) always restores the 
SWT_WINDOW0 window proc so if the code is called with a button, it will lose the 
button window proc when it unsubclasses.

A fix would be to save the window proc in a Hashtable keyed by HWND or store it 
with the HWND using Windows AddProp and GetProp (like a C program would do).
Comment 1 Lynne Kues CLA 2001-11-20 15:47:44 EST
Put in a hash table as suggested below.  Getting KR to review the changes 
before releasing.
Comment 2 Lynne Kues CLA 2001-11-21 11:39:35 EST
Reviewed by KR.  Releasing fix.