📄 group__post__event__msgs.htm
字号:
<td class="md" nowrap valign="top">#define MSG_SETCURSOR 0x0020 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets cursor shape in the client area. <p>This message is posted to the window under the cursor when the user moves the mouse in order to give the chance to change the cursor shape. The default handler set the cursor shape to the default cursor of the window. If you set a new cursor shape, your message handler should return immediately.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__post__event__msgs.htm#ga1">MSG_SETCURSOR</a> <span class="keywordtype">int</span> cx = <a class="code" href="group__win32__types.htm#ga24">LOSWORD</a> (lParam); <span class="keywordtype">int</span> cy = <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>cx,cy</em> </td><td>The client coordinates of the cursor.</td></tr> </table></dl>Example:<p><div class="fragment"><pre class="fragment"><span class="comment">/*</span><span class="comment"> * The following MSG_SETCURSOR handler set the cursor</span><span class="comment"> * shape to the arrow cursor when the window is disabled.</span><span class="comment"> */</span> <span class="keywordflow">case</span> <a class="code" href="group__post__event__msgs.htm#ga1">MSG_SETCURSOR</a>: <span class="keywordflow">if</span> (<a class="code" href="group__window__general__fns.htm#ga13">GetWindowStyle</a> (hwnd) & <a class="code" href="group__styles.htm#ga7">WS_DISABLED</a>) { <a class="code" href="group__cursor__fns.htm#ga37">SetCursor</a> (<a class="code" href="group__cursor__fns.htm#ga4">GetSystemCursor</a> (<a class="code" href="group__cursor__fns.htm#ga14">IDC_ARROW</a>)); <span class="keywordflow">return</span> 0; } <span class="keywordflow">break</span>;</pre></div><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__post__event__msgs.htm#ga68">MSG_NCSETCURSOR</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l00629">629</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga44" doxytag="window.h::MSG_SETFOCUS"></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_SETFOCUS 0x0030 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Indicates that the window has gained the input focus. <p>This message is sent to the window procedure after the window gains the input focus. <p>Definition at line <a class="el" href="window_8h-source.htm#l00773">773</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga42" doxytag="window.h::MSG_SIZECHANGED"></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_SIZECHANGED 0x0026 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Indicates the size of the window has been changed. <p>This message is sent to the window when the size has been changed. If you want adjust the size of the client area of the window, you should handle this message, change the values of the client area, and return non-zero value to indicate that the client area has been modified.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__post__event__msgs.htm#ga42">MSG_SIZECHANGED</a> <a class="code" href="struct__RECT.htm">RECT</a>* rcClient = (<a class="code" href="struct__RECT.htm">RECT</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>rcClient</em> </td><td>The pointer to a RECT structure which contains the new client area.</td></tr> </table></dl>Example:<p><div class="fragment"><pre class="fragment"> <span class="keywordflow">case</span> <a class="code" href="group__post__event__msgs.htm#ga42">MSG_SIZECHANGED</a>: { <a class="code" href="struct__RECT.htm">RECT</a>* rcClient = (<a class="code" href="struct__RECT.htm">RECT</a>*)lParam; rcClient-><a class="code" href="struct__RECT.htm#o2">right</a> = rcClient-><a class="code" href="struct__RECT.htm#o0">left</a> + _WIDTH; rcClient-><a class="code" href="struct__RECT.htm#o3">bottom</a> = rcClient-><a class="code" href="struct__RECT.htm#o1">top</a> + _HEIGHT; <span class="keywordflow">return</span> 1; }</pre></div> <p>Definition at line <a class="el" href="window_8h-source.htm#l00746">746</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga41" doxytag="window.h::MSG_SIZECHANGING"></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_SIZECHANGING 0x0025 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Indicates the size of the window is being changed. <p>This message is sent to the window when the size is being changed. If you want to control the actual position and size of the window when the size is being changed (this may be caused by <em>MoveWindow</em> or other functions), you should handle this message, and return the actual position and size of the window through the second parameter.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__post__event__msgs.htm#ga41">MSG_SIZECHANGING</a> <span class="keyword">const</span> <a class="code" href="struct__RECT.htm">RECT</a>* rcExpect = (<span class="keyword">const</span> <a class="code" href="struct__RECT.htm">RECT</a>*)wParam; <a class="code" href="struct__RECT.htm">RECT</a>* rcResult = (<a class="code" href="struct__RECT.htm">RECT</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>rcExpect</em> </td><td>The expected size of the window after changing. </td></tr> <tr><td valign="top"></td><td valign="top"><em>rcResult</em> </td><td>The actual size of the window after changing.</td></tr> </table></dl>Example:<p><div class="fragment"><pre class="fragment"><span class="comment">/*</span><span class="comment"> * The handler set the actual size of the window always</span><span class="comment"> * to be _WIDTH wide and _HEIGHT high.</span><span class="comment"> */</span> <span class="keywordflow">case</span> <a class="code" href="group__post__event__msgs.htm#ga41">MSG_SIZECHANGING</a>: { <span class="keyword">const</span> <a class="code" href="struct__RECT.htm">RECT</a>* rcExpect = (<span class="keyword">const</span> <a class="code" href="struct__RECT.htm">RECT</a>*)wParam; <a class="code" href="struct__RECT.htm">RECT</a>* rcResult = (<a class="code" href="struct__RECT.htm">RECT</a>*)lParam; rcResult-><a class="code" href="struct__RECT.htm#o0">left</a> = rcExpect-><a class="code" href="struct__RECT.htm#o0">left</a>; rcResult-><a class="code" href="struct__RECT.htm#o1">top</a> = rcExpect-><a class="code" href="struct__RECT.htm#o1">top</a>; rcResult-><a class="code" href="struct__RECT.htm#o2">right</a> = rcExpect-><a class="code" href="struct__RECT.htm#o0">left</a> + _WIDTH; rcResult-><a class="code" href="struct__RECT.htm#o3">bottom</a> = rcExpect-><a class="code" href="struct__RECT.htm#o1">top</a> + _HEIGHT; <span class="keywordflow">return</span> 0; }</pre></div> <p>Definition at line <a class="el" href="window_8h-source.htm#l00722">722</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga67" doxytag="window.h::MSG_VSCROLL"></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_VSCROLL 0x0043 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Indicates that the user has clicked the vertical scroll bar. <p>This message is sent to the window procedure when the user has clicked the vertical scroll bar and changed the position of the thumb.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__post__event__msgs.htm#ga66">MSG_HSCROLL</a> <span class="keywordtype">int</span> vs_nc = (int)wParam;</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>vs_nc</em> </td><td>The scrolling code, can be one of the following values:<ul><li>SB_LINEUP<br> The user clicked the up arrow on the bar.</li><li>SB_LINEDOWN<br> The user clicked the down arrow on the bar.</li><li>SB_PAGEUP<br> The user clicked the up page area on the bar.</li><li>SB_PAGEDOWN<br> The user clicked the down page area on the bar.</li><li>SB_THUMBPOSITION<br> The user set a new thumb position.</li><li>SB_THUMBTRACK<br> The user is draging and tracking the thumb.</li><li>SB_ENDSCROLL<br> The end of scrolling. </li></ul></td></tr> </table></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l00929">929</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga70" doxytag="window.h::MSG_WINDOWDROPPED"></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_WINDOWDROPPED 0x0051 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Indicates that user dropped window. server to client; (wParam, lParam): result rectangle. <p><p>Definition at line <a class="el" href="window_8h-source.htm#l00967">967</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 <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 + -