﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-程序人生-随笔分类-.NET</title><link>http://www.blogjava.net/zuroc/category/432.html</link><description /><language>zh-cn</language><lastBuildDate>Wed, 28 Feb 2007 12:31:35 GMT</lastBuildDate><pubDate>Wed, 28 Feb 2007 12:31:35 GMT</pubDate><ttl>60</ttl><item><title>WM_SYSCOMMAND说明</title><link>http://www.blogjava.net/zuroc/archive/2005/02/19/1327.html</link><dc:creator>AK747</dc:creator><author>AK747</author><pubDate>Sat, 19 Feb 2005 08:25:00 GMT</pubDate><guid>http://www.blogjava.net/zuroc/archive/2005/02/19/1327.html</guid><wfw:comment>http://www.blogjava.net/zuroc/comments/1327.html</wfw:comment><comments>http://www.blogjava.net/zuroc/archive/2005/02/19/1327.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/zuroc/comments/commentRss/1327.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/zuroc/services/trackbacks/1327.html</trackback:ping><description><![CDATA[<h1><font style="background-color: rgb(49, 106, 197);" color="#ffffff">WM_SYSCOMMAND</font> 
Notification</h1>


<hr size="1">

<p>A window receives this message when the user chooses a command from the 
<i>Window</i> menu (formerly known as the system or control menu) or when the 
user chooses the maximize button, minimize button, restore button, or close 
button.</p>


<p class="clsRef">Syntax</p>


<blockquote xmlns:xsl="http://www.w3.org/TR/WD-xsl"><pre class="clsCode"><font style="background-color: rgb(49, 106, 197);" color="#ffffff">WM_SYSCOMMAND</font><br><br>    WPARAM wParam<br>    LPARAM lParam;<br>    </pre></blockquote>


<p class="clsRef">Parameters</p>


<blockquote>
<dl><dt><i>wParam</i>
</dt><dd>Specifies the type of system command requested. This parameter can be one of 
the following values. 
<dl><dt><span class="clsLiteral">SC_CLOSE</span>
</dt><dd>Closes the window.
</dd><dt><span class="clsLiteral">SC_CONTEXTHELP</span>
</dt><dd>Changes the cursor to a question mark with a pointer. If the user then 
clicks a control in the dialog box, the control receives a <MSHelp:link tabindex="0" xmlns:mshelp="http://msdn.microsoft.com/mshelp" keywords="_win32_WM_HELP">WM_HELP</MSHelp:link> message.
</dd><dt><span class="clsLiteral">SC_DEFAULT</span>
</dt><dd>Selects the default item; the user double-clicked the window menu.
</dd><dt><span class="clsLiteral">SC_HOTKEY</span>
</dt><dd>Activates the window associated with the application-specified hot key. The 
<i>lParam</i> parameter identifies the window to activate.
</dd><dt><span class="clsLiteral">SC_HSCROLL</span>
</dt><dd>Scrolls horizontally.
</dd><dt><span class="clsLiteral">SC_KEYMENU</span>
</dt><dd>Retrieves the window menu as a result of a keystroke. For more information, 
see the Remarks section.
</dd><dt><span class="clsLiteral">SC_MAXIMIZE</span>
</dt><dd>Maximizes the window.
</dd><dt><span class="clsLiteral">SC_MINIMIZE</span>
</dt><dd>Minimizes the window.
</dd><dt><span class="clsLiteral">SC_MONITORPOWER</span>
</dt><dd>Sets the state of the display. This command supports devices that have 
power-saving features, such as a battery-powered personal computer. 
<p>The <i>lParam</i> parameter can have the following values:</p>
<p>1 - the display is going to low power</p>
<p>2 - the display is being shut off</p>
</dd><dt><span class="clsLiteral">SC_MOUSEMENU</span>
</dt><dd>Retrieves the window menu as a result of a mouse click.
</dd><dt><span class="clsLiteral">SC_MOVE</span>
</dt><dd>Moves the window.
</dd><dt><span class="clsLiteral">SC_NEXTWINDOW</span>
</dt><dd>Moves to the next window.
</dd><dt><span class="clsLiteral">SC_PREVWINDOW</span>
</dt><dd>Moves to the previous window.
</dd><dt><span class="clsLiteral">SC_RESTORE</span>
</dt><dd>Restores the window to its normal position and size.
</dd><dt><span class="clsLiteral">SC_SCREENSAVE</span>
</dt><dd>Executes the screen saver application specified in the [boot] section of the 
System.ini file.
</dd><dt><span class="clsLiteral">SC_SIZE</span>
</dt><dd>Sizes the window.
</dd><dt><span class="clsLiteral">SC_TASKLIST</span>
</dt><dd>Activates the <i>Start</i> menu.
</dd><dt><span class="clsLiteral">SC_VSCROLL</span>
</dt><dd>Scrolls vertically.</dd></dl>
</dd><dt><i>lParam（东西被点中时的鼠标位置，低位是光标的X轴坐标，</i><i>高位是光标的Y轴坐标</i><i>）</i>
</dt><dd>The low-order word specifies the horizontal position of the cursor, in 
screen coordinates, if a window menu command is chosen with the mouse. 
Otherwise, this parameter is not used. 
<p>The high-order word specifies the vertical position of the cursor, in screen 
coordinates, if a window menu command is chosen with the mouse. This parameter 
is –1 if the command is chosen using a system accelerator, or zero if using a 
mnemonic. </p></dd></dl></blockquote>
<img src ="http://www.blogjava.net/zuroc/aggbug/1327.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zuroc/" target="_blank">AK747</a> 2005-02-19 16:25 <a href="http://www.blogjava.net/zuroc/archive/2005/02/19/1327.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>