Today, I just want to draw some Chinese Information on the MTK screen. After all, I was just getting started with MTK. I didn't think of this as a problem when I developed WM. Now the problem is coming, when MTK outputs Chinese characters, it turns into garbled characters. After searching for keywords and reading some code, it writes an interface based on the 35 platform developed by itself.
Code
Void drawchinesestring (kal_uint8 * s, 2010len, s32 X, s32 y, color C)
{
Kal_uint8 des [256] = {0 };
Mmi_assert (Len! = 0 );
Mmi_chset_text_to_ucs2 (DES, Len + 2, S );
Gui_move_text_cursor (x, y );
Gui_set_text_color (C );
Gui_print_text (ui_string_type) des );
Return;
}
To be called:
Drawchinesestring (kal_uint8 *) "Target name", 8, X, Y, ui_color_black );
It is still quite troublesome. Next we need to study how to add the Input Method to the single-line input box. If it is depressing, we don't have to consider it in WM. Now we have to consider it in MTK.
I want to write a WP7 article whenever I have time. Well, I wrote it for the first time. Let's take a look.