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

📄 group__mouse__msgs.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<p>This message is posted to the window when the user presses down the right button of the mouse in the non-client area of the window.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mouse__msgs.htm#ga13">MSG_NCRBUTTONDOWN</a> <span class="keywordtype">int</span> hit_code = (int)wParam; <span class="keywordtype">int</span> x_pos = <a class="code" href="group__win32__types.htm#ga24">LOSWORD</a> (lParam); <span class="keywordtype">int</span> y_pos = <a class="code" href="group__win32__types.htm#ga25">HISWORD</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>hit_code</em>&nbsp;</td><td>The hit test code which tells the area of the mouse. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>x_pos,y_pos</em>&nbsp;</td><td>The position of the mouse in window coordinates.</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__mouse__msgs.htm#ga14">MSG_NCRBUTTONUP</a>, <a class="el" href="group__post__event__msgs.htm#ga36">MSG_NCHITTEST</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l00313">313</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga14" doxytag="window.h::MSG_NCRBUTTONUP"></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_NCRBUTTONUP&nbsp;&nbsp;&nbsp;0x000D          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Right mouse button up message in the non-client area. <p>This message is posted to the window when the user releases up the right button of the mouse in the non-client area of the window.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mouse__msgs.htm#ga14">MSG_NCRBUTTONUP</a> <span class="keywordtype">int</span> hit_code = (int)wParam; <span class="keywordtype">int</span> x_pos = <a class="code" href="group__win32__types.htm#ga24">LOSWORD</a> (lParam); <span class="keywordtype">int</span> y_pos = <a class="code" href="group__win32__types.htm#ga25">HISWORD</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>hit_code</em>&nbsp;</td><td>The hit test code which tells the area of the mouse. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>x_pos,y_pos</em>&nbsp;</td><td>The position of the mouse in window coordinates.</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__mouse__msgs.htm#ga13">MSG_NCRBUTTONDOWN</a>, <a class="el" href="group__post__event__msgs.htm#ga36">MSG_NCHITTEST</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l00334">334</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_RBUTTONDBLCLK"></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_RBUTTONDBLCLK&nbsp;&nbsp;&nbsp;0x0007          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Right mouse button double clicked message. <p>This message is posted to the window when the user double clicks the right button of the mouse in the client area of the window.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mouse__msgs.htm#ga7">MSG_RBUTTONDBLCLK</a> <a class="code" href="group__win32__types.htm#ga4">DWORD</a> key_flags = (<a class="code" href="group__win32__types.htm#ga4">DWORD</a>)wParam; <span class="keywordtype">int</span> x_pos = <a class="code" href="group__win32__types.htm#ga24">LOSWORD</a> (lParam); <span class="keywordtype">int</span> y_pos = <a class="code" href="group__win32__types.htm#ga25">HISWORD</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>key_flags</em>&nbsp;</td><td>The shift key status when this message occurred. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>x_pos,y_pos</em>&nbsp;</td><td>The position of the mouse in client coordinates.</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__mouse__msgs.htm#ga3">MSG_LBUTTONDBLCLK</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#l00206">206</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga5" doxytag="window.h::MSG_RBUTTONDOWN"></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_RBUTTONDOWN&nbsp;&nbsp;&nbsp;0x0005          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Right mouse button down message. <p>This message is posted to the window when the user presses down the right button of the mouse in the client area of the window.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mouse__msgs.htm#ga5">MSG_RBUTTONDOWN</a> <a class="code" href="group__win32__types.htm#ga4">DWORD</a> key_flags = (<a class="code" href="group__win32__types.htm#ga4">DWORD</a>)wParam; <span class="keywordtype">int</span> x_pos = <a class="code" href="group__win32__types.htm#ga24">LOSWORD</a> (lParam); <span class="keywordtype">int</span> y_pos = <a class="code" href="group__win32__types.htm#ga25">HISWORD</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>key_flags</em>&nbsp;</td><td>The shift key status when this message occurred. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>x_pos,y_pos</em>&nbsp;</td><td>The position of the mouse in client coordinates.</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__mouse__msgs.htm#ga6">MSG_RBUTTONUP</a>, <a class="el" href="group__key__defs.htm">Macros for key codes and shift status</a></dd></dl>Example: <div class="fragment"><pre class="fragment"><span class="comment">/*</span><span class="comment"> * This example trys to handle the event when the user presses </span><span class="comment"> * left button and right button of the mouse at the same time.</span><span class="comment"> */</span><span class="keywordtype">int</span> MyWinProc (<a class="code" href="group__handles.htm#ga1">HWND</a> hWnd, <span class="keywordtype">int</span> message, <a class="code" href="group__win32__types.htm#ga8">WPARAM</a> wParam, <a class="code" href="group__win32__types.htm#ga9">LPARAM</a> lParam){    <span class="keywordflow">switch</span> (message) {        <span class="keywordflow">case</span> <a class="code" href="group__mouse__msgs.htm#ga1">MSG_LBUTTONDOWN</a>:            <span class="keywordflow">if</span> (wParam &amp; KS_RIGHTBUTTON) {                <span class="comment">// Left button and right button both are pressed.</span>                <span class="keywordflow">break</span>;            }            <span class="keywordflow">break</span>;        <span class="keywordflow">case</span> <a class="code" href="group__mouse__msgs.htm#ga5">MSG_RBUTTONDOWN</a>:            <span class="keywordflow">if</span> (wParam &amp; <a class="code" href="group__key__defs.htm#ga141">KS_LEFTBUTTON</a>) {                <span class="comment">// Left button and right button both are pressed.</span>                <span class="keywordflow">break</span>;            }            <span class="keywordflow">break</span>;        <span class="keywordflow">case</span> <a class="code" href="group__mouse__msgs.htm#ga4">MSG_MOUSEMOVE</a>:            <span class="keywordflow">if</span> (wParam &amp; <a class="code" href="group__key__defs.htm#ga133">KS_CTRL</a>) {                <span class="comment">// User moves the mouse as the &lt;Ctrl&gt; key is down.</span>                <span class="keywordflow">break</span>;            }            <span class="keywordflow">break</span>;        ...    }    <span class="keywordflow">return</span> <a class="code" href="group__window__create__fns.htm#ga19">DefaultMainWinProc</a> (hWnd, message, wParam, lParam);}</pre></div> <p>Definition at line <a class="el" href="window_8h-source.htm#l00164">164</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_RBUTTONUP"></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_RBUTTONUP&nbsp;&nbsp;&nbsp;0x0006          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Right mouse button up message. <p>This message is posted to the window when the user releases up the right button of the mouse in the client area of the window.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mouse__msgs.htm#ga6">MSG_RBUTTONUP</a> <a class="code" href="group__win32__types.htm#ga4">DWORD</a> key_flags = (<a class="code" href="group__win32__types.htm#ga4">DWORD</a>)wParam; <span class="keywordtype">int</span> x_pos = <a class="code" href="group__win32__types.htm#ga24">LOSWORD</a> (lParam); <span class="keywordtype">int</span> y_pos = <a class="code" href="group__win32__types.htm#ga25">HISWORD</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>key_flags</em>&nbsp;</td><td>The shift key status when this message occurred. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>x_pos,y_pos</em>&nbsp;</td><td>The position of the mouse in client coordinates.</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__mouse__msgs.htm#ga5">MSG_RBUTTONDOWN</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#l00185">185</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 + -