424 */ 425 virtual BOOL InheritsNativeMouseWheelBehavior(); 426 427 /* Determines whether the component is obscured by another window */ 428 // Called on Toolkit thread 429 static jboolean _IsObscured(void *param); 430 431 /* Invalidate the specified rectangle. */ 432 virtual void Invalidate(RECT* r); 433 434 /* Begin and end deferred window positioning. */ 435 virtual void BeginValidate(); 436 virtual void EndValidate(); 437 438 /* Keyboard conversion routines. */ 439 static void InitDynamicKeyMapTable(); 440 static void BuildDynamicKeyMapTable(); 441 static jint GetJavaModifiers(); 442 static jint GetButton(int mouseButton); 443 static UINT GetButtonMK(int mouseButton); 444 static UINT WindowsKeyToJavaKey(UINT windowsKey, UINT modifiers); 445 static void JavaKeyToWindowsKey(UINT javaKey, UINT *windowsKey, UINT *modifiers, UINT originalWindowsKey); 446 static void UpdateDynPrimaryKeymap(UINT wkey, UINT jkeyLegacy, jint keyLocation, UINT modifiers); 447 448 INLINE static void AwtComponent::JavaKeyToWindowsKey(UINT javaKey, 449 UINT *windowsKey, UINT *modifiers) 450 { 451 JavaKeyToWindowsKey(javaKey, windowsKey, modifiers, IGNORE_KEY); 452 } 453 454 enum TransOps {NONE, LOAD, SAVE}; 455 456 UINT WindowsKeyToJavaChar(UINT wkey, UINT modifiers, TransOps ops); 457 458 /* routines used for input method support */ 459 void SetInputMethod(jobject im, BOOL useNativeCompWindow); 460 void SendInputMethodEvent(jint id, jstring text, int cClause, 461 int *rgClauseBoundary, jstring *rgClauseReading, 462 int cAttrBlock, int *rgAttrBoundary, 463 BYTE *rgAttrValue, int commitedTextLength, 464 int caretPos, int visiblePos); 465 void InquireCandidatePosition(); 466 INLINE LPARAM GetCandidateType() { return m_bitsCandType; } 467 HWND ImmGetHWnd(); 468 HIMC ImmAssociateContext(HIMC himc); 469 HWND GetProxyFocusOwner(); 470 471 INLINE HWND GetProxyToplevelContainer() { 472 HWND proxyHWnd = GetProxyFocusOwner(); 473 return ::GetAncestor(proxyHWnd, GA_ROOT); // a browser in case of EmbeddedFrame 474 } 475 476 void CallProxyDefWindowProc(UINT message, | 424 */ 425 virtual BOOL InheritsNativeMouseWheelBehavior(); 426 427 /* Determines whether the component is obscured by another window */ 428 // Called on Toolkit thread 429 static jboolean _IsObscured(void *param); 430 431 /* Invalidate the specified rectangle. */ 432 virtual void Invalidate(RECT* r); 433 434 /* Begin and end deferred window positioning. */ 435 virtual void BeginValidate(); 436 virtual void EndValidate(); 437 438 /* Keyboard conversion routines. */ 439 static void InitDynamicKeyMapTable(); 440 static void BuildDynamicKeyMapTable(); 441 static jint GetJavaModifiers(); 442 static jint GetButton(int mouseButton); 443 static UINT GetButtonMK(int mouseButton); 444 static UINT WindowsKeyToJavaKey(UINT windowsKey, UINT modifiers, UINT character, BOOL isDeadKey); 445 static void JavaKeyToWindowsKey(UINT javaKey, UINT *windowsKey, UINT *modifiers, UINT originalWindowsKey); 446 static void UpdateDynPrimaryKeymap(UINT wkey, UINT jkeyLegacy, jint keyLocation, UINT modifiers); 447 448 INLINE static void AwtComponent::JavaKeyToWindowsKey(UINT javaKey, 449 UINT *windowsKey, UINT *modifiers) 450 { 451 JavaKeyToWindowsKey(javaKey, windowsKey, modifiers, IGNORE_KEY); 452 } 453 454 enum TransOps {NONE, LOAD, SAVE}; 455 456 void WindowsKeyToJavaChar(UINT wkey, UINT modifiers, TransOps ops, UINT *character, BOOL *isDeadKey); 457 458 /* routines used for input method support */ 459 void SetInputMethod(jobject im, BOOL useNativeCompWindow); 460 void SendInputMethodEvent(jint id, jstring text, int cClause, 461 int *rgClauseBoundary, jstring *rgClauseReading, 462 int cAttrBlock, int *rgAttrBoundary, 463 BYTE *rgAttrValue, int commitedTextLength, 464 int caretPos, int visiblePos); 465 void InquireCandidatePosition(); 466 INLINE LPARAM GetCandidateType() { return m_bitsCandType; } 467 HWND ImmGetHWnd(); 468 HIMC ImmAssociateContext(HIMC himc); 469 HWND GetProxyFocusOwner(); 470 471 INLINE HWND GetProxyToplevelContainer() { 472 HWND proxyHWnd = GetProxyFocusOwner(); 473 return ::GetAncestor(proxyHWnd, GA_ROOT); // a browser in case of EmbeddedFrame 474 } 475 476 void CallProxyDefWindowProc(UINT message, |