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 HIMC ImmGetContext();
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,
477 WPARAM wParam,
478 LPARAM lParam,
479 LRESULT &retVal,
480 MsgRouting &mr);
481
482 /*
483 * Windows message handler functions
484 */
485 virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
486 virtual LRESULT DefWindowProc(UINT msg, WPARAM wParam, LPARAM lParam);
487
|
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,
477 WPARAM wParam,
478 LPARAM lParam,
479 LRESULT &retVal,
480 MsgRouting &mr);
481
482 /*
483 * Windows message handler functions
484 */
485 virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
486 virtual LRESULT DefWindowProc(UINT msg, WPARAM wParam, LPARAM lParam);
487
|