3835 *lplParam = 0; 3836 return mrDoDefault; 3837 } 3838 ImmReleaseContext(hwnd, hIMC); 3839 3840 if (fSet) { 3841 LPARAM lParam = *lplParam; 3842 if (!m_useNativeCompWindow) { 3843 // stop to draw native composing window. 3844 *lplParam &= ~ISC_SHOWUICOMPOSITIONWINDOW; 3845 } 3846 } 3847 return mrDoDefault; 3848 } 3849 3850 MsgRouting AwtComponent::WmImeNotify(WPARAM subMsg, LPARAM bitsCandType) 3851 { 3852 if (!m_useNativeCompWindow) { 3853 if (subMsg == IMN_OPENCANDIDATE) { 3854 m_bitsCandType = subMsg; 3855 } else if (subMsg != IMN_SETCANDIDATEPOS) { 3856 m_bitsCandType = 0; 3857 } 3858 InquireCandidatePosition(); 3859 return mrConsume; 3860 } 3861 return mrDoDefault; 3862 } 3863 3864 MsgRouting AwtComponent::WmImeStartComposition() 3865 { 3866 if (m_useNativeCompWindow) { 3867 RECT rc; 3868 ::GetClientRect(GetHWnd(), &rc); 3869 SetCompositionWindow(rc); 3870 return mrDoDefault; 3871 } else 3872 return mrConsume; 3873 } 3874 3875 MsgRouting AwtComponent::WmImeEndComposition() 3876 { 3877 if (m_useNativeCompWindow) return mrDoDefault; 3878 | 3835 *lplParam = 0; 3836 return mrDoDefault; 3837 } 3838 ImmReleaseContext(hwnd, hIMC); 3839 3840 if (fSet) { 3841 LPARAM lParam = *lplParam; 3842 if (!m_useNativeCompWindow) { 3843 // stop to draw native composing window. 3844 *lplParam &= ~ISC_SHOWUICOMPOSITIONWINDOW; 3845 } 3846 } 3847 return mrDoDefault; 3848 } 3849 3850 MsgRouting AwtComponent::WmImeNotify(WPARAM subMsg, LPARAM bitsCandType) 3851 { 3852 if (!m_useNativeCompWindow) { 3853 if (subMsg == IMN_OPENCANDIDATE) { 3854 m_bitsCandType = subMsg; 3855 InquireCandidatePosition(); 3856 } else if (subMsg == IMN_OPENSTATUSWINDOW || 3857 subMsg == WM_IME_STARTCOMPOSITION) { 3858 m_bitsCandType = 0; 3859 InquireCandidatePosition(); 3860 } 3861 return mrConsume; 3862 } 3863 return mrDoDefault; 3864 } 3865 3866 MsgRouting AwtComponent::WmImeStartComposition() 3867 { 3868 if (m_useNativeCompWindow) { 3869 RECT rc; 3870 ::GetClientRect(GetHWnd(), &rc); 3871 SetCompositionWindow(rc); 3872 return mrDoDefault; 3873 } else 3874 return mrConsume; 3875 } 3876 3877 MsgRouting AwtComponent::WmImeEndComposition() 3878 { 3879 if (m_useNativeCompWindow) return mrDoDefault; 3880 |