📄 group__ime__fns.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>MiniGUI V1.6.10 API Reference: IME Window functions</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.htm">Main Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical List</a> | <a class="qindex" href="annotated.htm">Data Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File List</a> | <a class="qindex" href="functions.htm">Data Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related Pages</a></div><h1>IME Window functions<br><small>[<a class="el" href="group__window__create__fns.htm">Window creating/destroying</a>]</small></h1><h2>Functions</h2><ul><li>int <a class="el" href="group__ime__fns.htm#ga0">GBIMEWinProc</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int message, <a class="el" href="group__win32__types.htm#ga8">WPARAM</a> wParam, <a class="el" href="group__win32__types.htm#ga9">LPARAM</a> lParam)<dl class="el"><dd class="mdescRight">The window callback procedure of the builit-in GB2312 Input Method window. <a href="#ga0"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__ime__fns.htm#ga2">RegisterIMEWindow</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Registers an IME window. <a href="#ga2"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__ime__fns.htm#ga3">UnregisterIMEWindow</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Unregisters an IME window. <a href="#ga3"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__ime__fns.htm#ga4">GetIMEStatus</a> (int StatusCode)<dl class="el"><dd class="mdescRight">Retrives status of the current IME window. <a href="#ga4"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__ime__fns.htm#ga5">SetIMEStatus</a> (int StatusCode, int Value)<dl class="el"><dd class="mdescRight">Sets the status of the current IME window. <a href="#ga5"></a><br></dl></ul><hr><h2>Function Documentation</h2><a class="anchor" name="ga0" doxytag="window.h::GBIMEWinProc"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int GBIMEWinProc </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a> </td> <td class="mdname" nowrap> <em>hWnd</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>message</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__win32__types.htm#ga8">WPARAM</a> </td> <td class="mdname" nowrap> <em>wParam</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__win32__types.htm#ga9">LPARAM</a> </td> <td class="mdname" nowrap> <em>lParam</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The window callback procedure of the builit-in GB2312 Input Method window. <p>This function is the window callback procedure of the built-in GB2312 (a charset for simplified Chinese) Input Method window.<p><dl compact><dt><b>Note:</b></dt><dd>This function defined for _IME_GB2312. You can disable GB2312 IME support by using <div class="fragment"><pre class="fragment"> ./configure --disable-imegb2312</pre></div></dd></dl><dl compact><dt><b>See also:</b></dt><dd>GBIMEWindowEx </dd></dl> </td> </tr></table><a class="anchor" name="ga4" doxytag="window.h::GetIMEStatus"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int GUIAPI GetIMEStatus </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>StatusCode</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Retrives status of the current IME window. <p>This function retrives status of the current IME window.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>StatusCode</em> </td><td>The item to be retrived, can be one of the following values:<ul><li>IS_ENABLE<br> Is the IME window enabled?</li><li>IS_FULLCHAR<br> Whether translate half character to full character?</li><li>IS_FULLPUNC<br> Whether tranlsate half punctuate mark to full mark?</li><li>IS_METHOD<br> Which input method?</li></ul></td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The status of the item specified by <em>StatusCode</em>, ERR_IME_NOIMEWND if error occurred.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__ime__fns.htm#ga5">SetIMEStatus</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga2" doxytag="window.h::RegisterIMEWindow"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int GUIAPI RegisterIMEWindow </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a> </td> <td class="mdname1" valign="top" nowrap> <em>hWnd</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Registers an IME window. <p>This function registers the specified window <em>hWnd</em> as the IME window of the MiniGUI. After that, the keyboard input will be sent to IME window first. Note that only one IME window can be registered.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>hWnd</em> </td><td>The handle to your IME window.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>ERR_OK on success, otherwise less than zero.</dd></dl><dl compact><dt><b>Return values:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>ERR_OK</em> </td><td>Success. </td></tr> <tr><td valign="top"></td><td valign="top"><em>ERR_IME_TOOMUCHIMEWND</em> </td><td>Already have an IME window registered. </td></tr> <tr><td valign="top"></td><td valign="top"><em>ERR_INV_HWND</em> </td><td>Invalid main window handle.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__ime__fns.htm#ga3">UnregisterIMEWindow</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga5" doxytag="window.h::SetIMEStatus"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int GUIAPI SetIMEStatus </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname" nowrap> <em>StatusCode</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>Value</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the status of the current IME window. <p>This function sets the status of the current IME window.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>StatusCode</em> </td><td>The item to be set, can be one of the following values:<ul><li>IS_ENABLE<br> Enabled or disable IME window.</li><li>IS_FULLCHAR<br> Whether translate half character to full character?</li><li>IS_FULLPUNC<br> Whether tranlsate half punctuate mark to full mark?</li><li>IS_METHOD<br> Which input method? </li></ul></td></tr> <tr><td valign="top"></td><td valign="top"><em>Value</em> </td><td>The status value of the item. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>ERR_OK on success, otherwise less than zero.</dd></dl><dl compact><dt><b>Return values:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>ERR_OK</em> </td><td>Success. </td></tr> <tr><td valign="top"></td><td valign="top"><em>ERR_IME_NOIMEWND</em> </td><td>There is no any IME window registered.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__ime__fns.htm#ga4">GetIMEStatus</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga3" doxytag="window.h::UnregisterIMEWindow"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int GUIAPI UnregisterIMEWindow </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a> </td> <td class="mdname1" valign="top" nowrap> <em>hWnd</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Unregisters an IME window. <p>This function undoes the effect of <em>RegisterIMEWindow</em>.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>hWnd</em> </td><td>The handle to the current IME window. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>ERR_OK on success, otherwise less than zero.</dd></dl><dl compact><dt><b>Return values:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>ERR_OK</em> </td><td>Success. </td></tr> <tr><td valign="top"></td><td valign="top"><em>ERR_IME_NOSUCHIMEWND</em> </td><td>The window is not the current IME window.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__ime__fns.htm#ga2">RegisterIMEWindow</a> </dd></dl> </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:55 2007 for MiniGUI V1.6.10 API Reference by <a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -