KKConvert 

2.0     

Activates the Kana-to-Kanji converter. (Japanese version only.)

BOOL KKConvert( HWND hwndConvert, HWND hwndCaller, LPSTR  lpBuf, UINT cbBuf, LPPOINT lpPoint )

Parameters

hwndConvert

Handle to the window with the text to be converted.

hwndCaller

Handle to the window that calls KKConvert.

lpBuf

The text to be converted.

cBuf

The number of bytes (greater than 1) in lpBuf.

lpPoint

The positition where the Kana-to-Kanji converter will appear.

Return Value

Returns TRUE if the text is successfully converted; otherwise, returns FALSE.

Comments

If lpBuf is NULL, the currently-selected text in the window specified by hwndConvert will be used for conversion and then replaced with the converted text. If lpBuf is not NULL, the text in lpBuf will be converted and replaced with the converted text. If the length of the converted text is longer than cbBuf, the text will be truncated.

If the window referenced by hwndConvert is of the bedit class, lpPnt is ignored; otherwise, the center of the Kana-to-Kanji conversion is displayed at lpPnt.

If the window referenced by hwndConvert is of the hedit class and lpPnt is NULL, then the current caret position is used; otherwise, the client position (0,0) in the window referenced by hwndConvert is used.