Download MiniGUI Programming Guide
Transcript
MiniGUI Programming Guide V2.0-4 int GUIAPI UnregisterIMEWindow ( HWND hWnd ); This function unregisters an IME window. int GUIAPI SetIMEStatus ( int StatusCode, int Value ); This function sets the status of current IME window. For GB2312 input method, StatusCode can be one of the following values: IS_ENABLE: Enable or disable the IME window IS_FULLCHAR: Whether translate half character to full character? IS_FULLPUNC: Whether translate half punctuate mark to full mark? IS_METHOD: Which input method? For example, Internal code, Quanpin, 5-stroke, etc. Value is the status value. int GUIAPI GetIMEStatus ( int StatusCode ); This function obtains the status of current IME window. StatusCode specifies what to obtain, and GetIMEStatus returns the status value of the IME window. Input method window is generally created by mginit program in MiniGUI-Processes. Application can create its own input method window, and then calls RegisterIMEWindow function to register the window to be input method window. After that, MiniGUI will send all the keystroke messages to the input method window, which in turn is handled by the input method window and forwarded to the target window or active client. 3.3 Message and Message Handling 3.3.1 Message MiniGUI application communicates with the outside by receiving messages. 43