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

📄 group__post__event__msgs.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<!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: Post mouse/key event messages</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&nbsp;Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.htm">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File&nbsp;List</a> | <a class="qindex" href="functions.htm">Data&nbsp;Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related&nbsp;Pages</a></div><h1>Post mouse/key event messages<br><small>[<a class="el" href="group__msgs.htm">Messages</a>]</small></h1><h2>Defines</h2><ul><li>#define <a class="el" href="group__post__event__msgs.htm#ga1">MSG_SETCURSOR</a>&nbsp;&nbsp;&nbsp;0x0020<dl class="el"><dd class="mdescRight">Sets cursor shape in the client area.  <a href="#ga1"></a><br></dl><li>#define <a class="el" href="group__post__event__msgs.htm#ga36">MSG_NCHITTEST</a>&nbsp;&nbsp;&nbsp;0x0021<dl class="el"><dd class="mdescRight">Hit test in non-client area. This is an async message.  <a href="#ga36"></a><br></dl><li>#define <a class="el" href="group__post__event__msgs.htm#ga37">MSG_HITTEST</a>&nbsp;&nbsp;&nbsp;MSG_NCHITTEST<dl class="el"><dd class="mdescRight">Hit test in non-client area.  <a href="#ga37"></a><br></dl><li>#define <a class="el" href="group__post__event__msgs.htm#ga38">MSG_CHANGESIZE</a>&nbsp;&nbsp;&nbsp;0x0022<dl class="el"><dd class="mdescRight">Change window size.  <a href="#ga38"></a><br></dl><li>#define <a class="el" href="group__post__event__msgs.htm#ga40">MSG_QUERYCLIENTAREA</a>&nbsp;&nbsp;&nbsp;0x0024<dl class="el"><dd class="mdescRight">Query client area.  <a href="#ga40"></a><br></dl><li>#define <a class="el" href="group__post__event__msgs.htm#ga41">MSG_SIZECHANGING</a>&nbsp;&nbsp;&nbsp;0x0025<dl class="el"><dd class="mdescRight">Indicates the size of the window is being changed.  <a href="#ga41"></a><br></dl><li>#define <a class="el" href="group__post__event__msgs.htm#ga42">MSG_SIZECHANGED</a>&nbsp;&nbsp;&nbsp;0x0026<dl class="el"><dd class="mdescRight">Indicates the size of the window has been changed.  <a href="#ga42"></a><br></dl><li>#define <a class="el" href="group__post__event__msgs.htm#ga43">MSG_CSIZECHANGED</a>&nbsp;&nbsp;&nbsp;0x0027<dl class="el"><dd class="mdescRight">Indicates the size of the client area of the window has been changed.  <a href="#ga43"></a><br></dl><li>#define <a class="el" href="group__post__event__msgs.htm#ga44">MSG_SETFOCUS</a>&nbsp;&nbsp;&nbsp;0x0030<dl class="el"><dd class="mdescRight">Indicates that the window has gained the input focus.  <a href="#ga44"></a><br></dl><li>#define <a class="el" href="group__post__event__msgs.htm#ga45">MSG_KILLFOCUS</a>&nbsp;&nbsp;&nbsp;0x0031<dl class="el"><dd class="mdescRight">Indicates that the window has lost the input focus.  <a href="#ga45"></a><br></dl><li>#define <a class="el" href="group__post__event__msgs.htm#ga46">MSG_MOUSEACTIVE</a>&nbsp;&nbsp;&nbsp;0x0032<dl class="el"><dd class="mdescRight">Indicates that the window has gained the input focus because the user clicked the window.  <a href="#ga46"></a><br></dl><li>#define <a class="el" href="group__post__event__msgs.htm#ga47">MSG_ACTIVE</a>&nbsp;&nbsp;&nbsp;0x0033<dl class="el"><dd class="mdescRight">Indicates that the window has gained the input focus because the user clicked the window.  <a href="#ga47"></a><br></dl><li>#define <a class="el" href="group__post__event__msgs.htm#ga48">MSG_CHILDHIDDEN</a>&nbsp;&nbsp;&nbsp;0x0034<dl class="el"><dd class="mdescRight">Hide child window.  <a href="#ga48"></a><br></dl><li>#define <a class="el" href="group__post__event__msgs.htm#ga53">MSG_ACTIVEMENU</a>&nbsp;&nbsp;&nbsp;0x0040<dl class="el"><dd class="mdescRight">Indicates that the user activates the menu bar and tracks it.  <a href="#ga53"></a><br></dl><li>#define <a class="el" href="group__post__event__msgs.htm#ga54">MSG_DEACTIVEMENU</a>&nbsp;&nbsp;&nbsp;0x0041<dl class="el"><dd class="mdescRight">Indicates the end of the tracking of a menu bar or a popup menu.  <a href="#ga54"></a><br></dl><li>#define <a class="el" href="group__post__event__msgs.htm#ga66">MSG_HSCROLL</a>&nbsp;&nbsp;&nbsp;0x0042<dl class="el"><dd class="mdescRight">Indicates that the user has clicked the horizontal scroll bar.  <a href="#ga66"></a><br></dl><li>#define <a class="el" href="group__post__event__msgs.htm#ga67">MSG_VSCROLL</a>&nbsp;&nbsp;&nbsp;0x0043<dl class="el"><dd class="mdescRight">Indicates that the user has clicked the vertical scroll bar.  <a href="#ga67"></a><br></dl><li>#define <a class="el" href="group__post__event__msgs.htm#ga68">MSG_NCSETCURSOR</a>&nbsp;&nbsp;&nbsp;0x0044<dl class="el"><dd class="mdescRight">Sets cursor shape in the non-client area.  <a href="#ga68"></a><br></dl><li>#define <a class="el" href="group__post__event__msgs.htm#ga69">MSG_MOUSEMOVEIN</a>&nbsp;&nbsp;&nbsp;0x0050<dl class="el"><dd class="mdescRight">Indicates the mouse is moved in/out the area of the window.  <a href="#ga69"></a><br></dl><li>#define <a class="el" href="group__post__event__msgs.htm#ga70">MSG_WINDOWDROPPED</a>&nbsp;&nbsp;&nbsp;0x0051<dl class="el"><dd class="mdescRight">Indicates that user dropped window. server to client; (wParam, lParam): result rectangle.  <a href="#ga70"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga47" doxytag="window.h::MSG_ACTIVE"></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_ACTIVE&nbsp;&nbsp;&nbsp;0x0033          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Indicates that the window has gained the input focus because the user clicked the window. <p>This message is sent to the window procedure after the user clicked the window and it has gained the input focus. <p>Definition at line <a class="el" href="window_8h-source.htm#l00801">801</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga53" doxytag="window.h::MSG_ACTIVEMENU"></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_ACTIVEMENU&nbsp;&nbsp;&nbsp;0x0040          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Indicates that the user activates the menu bar and tracks it. <p>This message is sent to the window procedure when the user activates the menu bar and tracks it.<p>If you want to change the states of menu items in the submenu before displaying it, you can handle this message.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__post__event__msgs.htm#ga53">MSG_ACTIVEMENU</a> <span class="keywordtype">int</span> pos = (int)wParam; <a class="code" href="group__handles.htm#ga6">HMENU</a> submenu = (<a class="code" href="group__handles.htm#ga6">HMENU</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>pos</em>&nbsp;</td><td>The position of the activated submenu. The position value of the first submenu is 0. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>submenu</em>&nbsp;</td><td>The handle to the activated submenu.</td></tr>  </table></dl>Example:<p><div class="fragment"><pre class="fragment"><span class="comment">/*</span><span class="comment"> * This handler checks the specified menu items to contain</span><span class="comment"> * a radio bitmap by calling CheckMenuRadioItem function,</span><span class="comment"> * if the submenu at position 2 has been activated.</span><span class="comment"> */</span>        <span class="keywordflow">case</span> <a class="code" href="group__post__event__msgs.htm#ga53">MSG_ACTIVEMENU</a>:            <span class="keywordflow">if</span> (wParam == 2) {                <a class="code" href="group__menu__fns.htm#ga26">CheckMenuRadioItem</a> ((<a class="code" href="group__handles.htm#ga6">HMENU</a>)lParam,                     IDM_40X15, IDM_CUSTOMIZE,                     pConInfo-&gt;termType, MF_BYCOMMAND);                <a class="code" href="group__menu__fns.htm#ga26">CheckMenuRadioItem</a> ((<a class="code" href="group__handles.htm#ga6">HMENU</a>)lParam,                     IDM_DEFAULT, IDM_BIG5,                     pConInfo-&gt;termCharset, MF_BYCOMMAND);            }        <span class="keywordflow">break</span>;</pre></div> <p>Definition at line <a class="el" href="window_8h-source.htm#l00837">837</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga38" doxytag="window.h::MSG_CHANGESIZE"></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_CHANGESIZE&nbsp;&nbsp;&nbsp;0x0022          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Change window size. <p><p>Definition at line <a class="el" href="window_8h-source.htm#l00688">688</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga48" doxytag="window.h::MSG_CHILDHIDDEN"></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_CHILDHIDDEN&nbsp;&nbsp;&nbsp;0x0034          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Hide child window. <p><p>Definition at line <a class="el" href="window_8h-source.htm#l00807">807</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga43" doxytag="window.h::MSG_CSIZECHANGED"></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_CSIZECHANGED&nbsp;&nbsp;&nbsp;0x0027          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Indicates the size of the client area of the window has been changed. <p>This message is sent as a notification to the window when the size of the client area has been changed.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__post__event__msgs.htm#ga43">MSG_CSIZECHANGED</a> <span class="keywordtype">int</span> client_width = (int)wParam; <span class="keywordtype">int</span> client_height = (int)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>client_width</em>&nbsp;</td><td>The width of the client area. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>client_height</em>&nbsp;</td><td>The height of the client area. </td></tr>  </table></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l00764">764</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga54" doxytag="window.h::MSG_DEACTIVEMENU"></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_DEACTIVEMENU&nbsp;&nbsp;&nbsp;0x0041          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Indicates the end of the tracking of a menu bar or a popup menu. <p>This message is sent to the window procedure when the user has closed the tracking menu bar or popup menu.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__post__event__msgs.htm#ga54">MSG_DEACTIVEMENU</a> <a class="code" href="group__handles.htm#ga6">HMENU</a> menubar = (<a class="code" href="group__handles.htm#ga6">HMENU</a>)wParam; <a class="code" href="group__handles.htm#ga6">HMENU</a> submenu = (<a class="code" href="group__handles.htm#ga6">HMENU</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>menubar</em>&nbsp;</td><td>The handle to the menu bar. It will be zero when the deactivated menu is a popup menu. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>submenu</em>&nbsp;</td><td>The handle to the submenu. </td></tr>  </table></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l00856">856</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga37" doxytag="window.h::MSG_HITTEST"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -