HighTechTalks DotNet Forums  

why can't the input candidate window show

Dotnet Internationalization microsoft.public.dotnet.internationalization


Discuss why can't the input candidate window show in the Dotnet Internationalization forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
loveleechangho
 
Posts: n/a

Default why can't the input candidate window show - 01-14-2006 , 09:16 AM






i want to customize the candidate window of japanese input, but it seems not
working well and ImmNotifyIME always return false, my source list as below:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.TextBox1.Focus()
Me.txthandle = Me.TextBox1.Handle
Dim str = "いれたてのおちゃ"
Dim enc As Encoding = Encoding.GetEncoding(932)
Dim bt() As Byte = Encoding.GetEncoding(932).GetBytes("いれたて おちゃ")

Me.himc = ImmGetContext(Me.txthandle)
ImmSetOpenStatus(hIMC, 1)
Dim j = ImmSetCompositionString(himc, SCS_SETSTR, str,
enc.GetByteCount(str), "", 0)
'Dim j = ImmSetCompositionString(himc, SCS_SETSTR, bt(0), bt.Length,
Nothing, 0)

j = ImmNotifyIME(himc, NI_OPENCANDIDATE, 0, 0)
MsgBox(j)

End Sub


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.