⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 group__key__msgs.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 2 页
字号:
This message is translated from a MSG_KEYDOWN message by <em>TranslateMessage</em> and sent to the current active window.<p>Note that one translation may generate a key symbol made by more than one character, e.g., when using default keymap, DEL key will generate the key symbol "^[[3~".<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__key__msgs.htm#ga10">MSG_KEYSYM</a> <span class="keywordtype">int</span> index = <a class="code" href="group__win32__types.htm#ga20">HIBYTE</a> (wParam); <span class="keywordtype">int</span> keysym = <a class="code" href="group__win32__types.htm#ga19">LOBYTE</a> (wParam); <a class="code" href="group__win32__types.htm#ga4">DWORD</a> key_flags = (<a class="code" href="group__win32__types.htm#ga4">DWORD</a>)lParam;</pre></div><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>index</em>&nbsp;</td><td>The index of the key symbol in one translation, zero for a new translation, and the <em>keysym</em> is the first symbol. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>keysym</em>&nbsp;</td><td>The code of the key symbol. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>key_flags</em>&nbsp;</td><td>The shift key status when this message occurred.</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__key__msgs.htm#ga8">MSG_SYSCHAR</a>, <a class="el" href="group__msg__pass__fns.htm#ga17">TranslateMessage</a>, <a class="el" href="group__key__defs.htm">Macros for key codes and shift status</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l00518">518</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga6" doxytag="window.h::MSG_KEYUP"></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">#define MSG_KEYUP&nbsp;&nbsp;&nbsp;0x0012          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>User releases up a key. <p>This message is posted to the current active window when the user releases up a key.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__key__msgs.htm#ga6">MSG_KEYUP</a> <span class="keywordtype">int</span> scancode = (int)wParam; <a class="code" href="group__win32__types.htm#ga4">DWORD</a> key_flags = (<a class="code" href="group__win32__types.htm#ga4">DWORD</a>)lParam;</pre></div><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>scancode</em>&nbsp;</td><td>The scan code of the released key. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>key_flags</em>&nbsp;</td><td>The shift key status when this message occurred.</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__key__msgs.htm#ga4">MSG_KEYDOWN</a>, <a class="el" href="group__key__defs.htm">Macros for key codes and shift status</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l00431">431</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga8" doxytag="window.h::MSG_SYSCHAR"></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">#define MSG_SYSCHAR&nbsp;&nbsp;&nbsp;0x0014          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>A system character translated from MSG_SYSKEYDOWN message. <p>This message is translated from a MSG_SYSKEYDOWN message by <em>TranslateMessage</em> and sent to the current active window.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__key__msgs.htm#ga8">MSG_SYSCHAR</a> <span class="keywordtype">int</span> ch = (int)wParam; <a class="code" href="group__win32__types.htm#ga4">DWORD</a> key_flags = (<a class="code" href="group__win32__types.htm#ga4">DWORD</a>)lParam;</pre></div><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>ch</em>&nbsp;</td><td>The ASCII code of the pressed key. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>key_flags</em>&nbsp;</td><td>The shift key status when this message occurred.</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__key__msgs.htm#ga5">MSG_CHAR</a>, <a class="el" href="group__msg__pass__fns.htm#ga17">TranslateMessage</a>, <a class="el" href="group__key__defs.htm">Macros for key codes and shift status</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l00471">471</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga7" doxytag="window.h::MSG_SYSKEYDOWN"></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">#define MSG_SYSKEYDOWN&nbsp;&nbsp;&nbsp;0x0013          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>User presses down a key when &lt;Alt&gt; key is down. <p>This message is posted to the current active window when the user presses down a key as &lt;Alt&gt; key is down.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__key__msgs.htm#ga7">MSG_SYSKEYDOWN</a> <span class="keywordtype">int</span> scancode = (int)wParam; <a class="code" href="group__win32__types.htm#ga4">DWORD</a> key_flags = (<a class="code" href="group__win32__types.htm#ga4">DWORD</a>)lParam;</pre></div><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>scancode</em>&nbsp;</td><td>The scan code of the pressed key. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>key_flags</em>&nbsp;</td><td>The shift key status when this message occurred.</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__key__msgs.htm#ga9">MSG_SYSKEYUP</a>, <a class="el" href="group__key__msgs.htm#ga8">MSG_SYSCHAR</a>, <a class="el" href="group__key__defs.htm">Macros for key codes and shift status</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l00451">451</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga9" doxytag="window.h::MSG_SYSKEYUP"></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">#define MSG_SYSKEYUP&nbsp;&nbsp;&nbsp;0x0015          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>User releases up a key when &lt;Alt&gt; key is down. <p>This message is posted to the current active window when the user releases up a key as &lt;Alt&gt; key is down.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__key__msgs.htm#ga9">MSG_SYSKEYUP</a> <span class="keywordtype">int</span> scancode = (int)wParam; <a class="code" href="group__win32__types.htm#ga4">DWORD</a> key_flags = (<a class="code" href="group__win32__types.htm#ga4">DWORD</a>)lParam;</pre></div><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>scancode</em>&nbsp;</td><td>The scan code of the released key. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>key_flags</em>&nbsp;</td><td>The shift key status when this message occurred.</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__key__msgs.htm#ga7">MSG_SYSKEYDOWN</a>, <a class="el" href="group__key__defs.htm">Macros for key codes and shift status</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l00491">491</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga18" doxytag="window.h::SetIntervalTime"></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">#define SetIntervalTime          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">time&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><b>Value:</b><div class="fragment"><pre class="fragment"><span class="keywordflow">do</span> {                                \        __mg_interval_time = time;      \    } <span class="keywordflow">while</span> (0)</pre></div>User set default interval time that MSG_KEYLONGPRESS is sent. <p><p>Definition at line <a class="el" href="window_8h-source.htm#l00588">588</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga17" doxytag="window.h::SetKeyAlwaysPressTime"></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">#define SetKeyAlwaysPressTime          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">time&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><b>Value:</b><div class="fragment"><pre class="fragment"><span class="keywordflow">do</span> {                                \        __mg_key_alwayspress_time = time; \    } <span class="keywordflow">while</span> (0)</pre></div>User set default always pressed time of a key. <p><p>Definition at line <a class="el" href="window_8h-source.htm#l00579">579</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga16" doxytag="window.h::SetKeyLongPressTime"></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">#define SetKeyLongPressTime          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">time&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><b>Value:</b><div class="fragment"><pre class="fragment"><span class="keywordflow">do</span> {                                \        __mg_key_longpress_time = time; \    } <span class="keywordflow">while</span> (0)</pre></div>User set default long pressed time of a key. <p><p>Definition at line <a class="el" href="window_8h-source.htm#l00570">570</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </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&nbsp;<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 + -