<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>转烛空间VC &#187; </title>
	<atom:link href="http://wangliping.net/tag/vc/feed" rel="self" type="application/rss+xml" />
	<link>http://wangliping.net</link>
	<description>记录生活，学习技术</description>
	<lastBuildDate>Fri, 03 Sep 2010 06:29:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>VC键盘消息大全</title>
		<link>http://wangliping.net/vckey</link>
		<comments>http://wangliping.net/vckey#comments</comments>
		<pubDate>Fri, 23 Oct 2009 15:40:00 +0000</pubDate>
		<dc:creator>转烛</dc:creator>
				<category><![CDATA[编程技术]]></category>
		<category><![CDATA[VC]]></category>
		<category><![CDATA[大全]]></category>
		<category><![CDATA[消息]]></category>
		<category><![CDATA[键盘]]></category>

		<guid isPermaLink="false">http://blog.wangliping.net/vc%e9%94%ae%e7%9b%98%e6%b6%88%e6%81%af%e5%a4%a7%e5%85%a8/</guid>
		<description><![CDATA[<br />]]></description>
			<content:encoded><![CDATA[<p>　　符号常量 十六进制值 指定的鼠标或键盘按键<br />
　　VK_LBUTTON 01 鼠标左键<br />
　　VK_RBUTTON 02 鼠标右键<br />
　　VK_CANCEL 03 Control-break 过程<br />
　　VK_MBUTTON 04 鼠标中键<br />
　　VK_BACK 08 BACKSPACE 键<br />
　　VK_TAB 09 TAB 键 <span id="more-113"></span><br />
　　VK_CLEAR 0C CLEAR 键<br />
　　VK_RETURN 0D ENTER 键<br />
　　VK_SHIFT 10 SHIFT 键<br />
　　VK_CONTROL 11 CTRL 键<br />
　　VK_MENU 12 ALT 键<br />
　　VK_PAUSE 13 PAUSE 键<br />
　　VK_CAPITAL 14 CAPS LOCK 键<br />
　　VK_ESCAPE 1B ESC 键<br />
　　VK_SPACE 20 SPACEBAR<br />
　　VK_PRIOR 21 PAGE UP 键<br />
　　VK_NEXT 22 PAGE DOWN 键<br />
　　VK_END 23 END 键<br />
　　VK_HOME 24 HOME 键<br />
　　VK_LEFT 25 LEFT ARROW 键<br />
　　VK_UP 26 UP ARROW 键<br />
　　VK_RIGHT 27 RIGHT ARROW 键<br />
　　VK_DOWN 28 DOWN ARROW 键<br />
　　VK_SELECT 29 SELECT 键<br />
　　VK_EXECUTE 2B EXECUTE 键<br />
　　VK_SNAPSHOT 2C PRINT SCREEN键（用于Windows 3.0及以后版本）<br />
　　VK_INSERT 2D INS 键<br />
　　VK_DELETE 2E DEL 键<br />
　　VK_HELP 2F HELP 键<br />
　　///////////////////////////////////////////////////<br />
　　对于字母键和非小键盘上的数字键,直接在单引号中加入该键就行.<br />
　　比如:a键:'A'<br />
　　 1键:'1'<br />
　　//////////////////////////////////////////////</p>
<p>　　VK_LWIN 5B Left Windows 键 (Microsoft自然键盘)<br />
　　VK_RWIN 5C Right Windows 键 (Microsoft自然键盘)<br />
　　VK_APPS 5D Applications 键 (Microsoft自然键盘)<br />
　　VK_NUMPAD0 60 数字小键盘上的 0 键<br />
　　VK_NUMPAD1 61 数字小键盘上的 1 键<br />
　　VK_NUMPAD2 62 数字小键盘上的 2 键<br />
　　VK_NUMPAD3 63 数字小键盘上的 3 键<br />
　　VK_NUMPAD4 64 数字小键盘上的 4 键<br />
　　VK_NUMPAD5 65 数字小键盘上的 5 键<br />
　　VK_NUMPAD6 66 数字小键盘上的 6 键<br />
　　VK_NUMPAD7 67 数字小键盘上的 7 键<br />
　　VK_NUMPAD8 68 数字小键盘上的 8 键<br />
　　VK_NUMPAD9 69 数字小键盘上的 9 键<br />
　　VK_MULTIPLY 6A Multiply 键<br />
　　VK_ADD 6B Add 键<br />
　　VK_SEPARATOR 6C Separator 键<br />
　　VK_SUBTRACT 6D Subtract 键<br />
　　VK_DECIMAL 6E Decimal 键<br />
　　VK_DIVIDE 6F Divide 键<br />
　　VK_F1 70 F1 键<br />
　　VK_F2 71 F2 键<br />
　　VK_F3 72 F3 键<br />
　　VK_F4 73 F4 键<br />
　　VK_F5 74 F5 键<br />
　　VK_F6 75 F6 键<br />
　　VK_F7 76 F7 键<br />
　　VK_F8 77 F8 键<br />
　　VK_F9 78 F9 键<br />
　　VK_F10 79 F10 键<br />
　　VK_F11 7A F11 键<br />
　　VK_F12 7B F12 键<br />
　　VK_F13 7C F13 键<br />
　　VK_F14 7D F14 键<br />
　　VK_F15 7E F15 键<br />
　　VK_F16 7F F16 键<br />
　　VK_F17 80H F17 键<br />
　　VK_F18 81H F18 键<br />
　　VK_F19 82H F19 键<br />
　　VK_F20 83H F20 键<br />
　　VK_F21 84H F21 键<br />
　　VK_F22 85H F22 键<br />
　　VK_F23 86H F23 键<br />
　　VK_F24 87H F24 键<br />
　　VK_NUMLOCK 90 NUM LOCK 键<br />
　　VK_SCROLL 91 SCROLL LOCK 键<br />
　　VK_ATTN F6 Attn 键<br />
　　VK_CRSEL F7 CrSel 键<br />
　　VK_EXSEL F8 ExSel 键<br />
　　VK_EREOF F9 Erase EOF 键<br />
　　VK_PLAY FA Play 键<br />
　　VK_ZOOM FB Zoom 键<br />
　　VK_OEM_CLEAR FE Clear 键</p>
<h3  class="related_post_title">你可能也感兴趣的文章：</h3><ul class="related_post"><li><a href="http://wangliping.net/to-study-shellexecut" title="深入浅出ShellExecut">深入浅出ShellExecut</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://wangliping.net/vckey/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>深入浅出ShellExecut</title>
		<link>http://wangliping.net/to-study-shellexecut</link>
		<comments>http://wangliping.net/to-study-shellexecut#comments</comments>
		<pubDate>Thu, 27 Mar 2008 03:03:00 +0000</pubDate>
		<dc:creator>转烛</dc:creator>
				<category><![CDATA[编程技术]]></category>
		<category><![CDATA[ShellExecut]]></category>
		<category><![CDATA[VC]]></category>
		<category><![CDATA[编程]]></category>
		<category><![CDATA[进程]]></category>

		<guid isPermaLink="false">http://blog.wangliping.net/%e6%b7%b1%e5%85%a5%e6%b5%85%e5%87%bashellexecut/</guid>
		<description><![CDATA[<br />]]></description>
			<content:encoded><![CDATA[<p>Q: 如何打开一个应用程序？<br />
ShellExecute(this-&gt;m_hWnd,&quot;open&quot;,&quot;calc.exe&quot;,&quot;&quot;,&quot;&quot;, SW_SHOW );<br />
或 ShellExecute(this-&gt;m_hWnd,&quot;open&quot;,&quot;notepad.exe&quot;, &quot;c:\\MyLog.log&quot;,&quot;&quot;,SW_SHOW );<br />
正如您所看到的，我并没有传递程序的完整路径。</p>
<p>Q: 如何打开一个同系统程序相关连的文档？ <br />
ShellExecute(this-&gt;m_hWnd,&quot;open&quot;, &quot;c:\\abc.txt&quot;,&quot;&quot;,&quot;&quot;,SW_SHOW );</p>
<p>Q: 如何打开一个网页？ <br />
ShellExecute(this-&gt;m_hWnd,&quot;open&quot;,&quot;http://hi.baidu.com/xtlp/&quot;,&quot;&quot;,&quot;&quot;, SW_SHOW );</p>
<p>Q: 如何激活相关程序，发送EMAIL？<br />
ShellExecute(this-&gt;m_hWnd,&quot;open&quot;,&quot;mailto:swandle@gmail.com&quot;,&quot;&quot;,&quot;&quot;, SW_SHOW );</p>
<p>Q: 如何用系统打印机打印文档？ <br />
ShellExecute(this-&gt;m_hWnd,&quot;print&quot;, &quot;c:\\abc.txt&quot;,&quot;&quot;,&quot;&quot;, SW_HIDE);</p>
<p>Q: 如何用系统查找功能来查找指定文件？ <br />
ShellExecute(m_hWnd,&quot;find&quot;,&quot;d:\\nish&quot;,NULL,NULL,SW_SHOW);</p>
<p>Q: 如何启动一个程序，直到它运行结束？ <br />
SHELLEXECUTEINFO ShExecInfo = {0};<br />
ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);<br />
ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;<br />
ShExecInfo.hwnd = NULL;<br />
ShExecInfo.lpVerb = NULL;<br />
ShExecInfo.lpFile = &quot;c:\\MyProgram.exe&quot;;&nbsp;&nbsp;<br />
ShExecInfo.lpParameters = &quot;&quot;; <br />
ShExecInfo.lpDirectory = NULL;<br />
ShExecInfo.nShow = SW_SHOW;<br />
ShExecInfo.hInstApp = NULL; <br />
ShellExecuteEx(&amp;ShExecInfo);<br />
WaitForSingleObject(ShExecInfo.hProcess,INFINITE);</p>
<p>或： <br />
PROCESS_INFORMATION ProcessInfo; <br />
STARTUPINFO StartupInfo; //This is an [in] parameter<br />
ZeroMemory(&amp;StartupInfo, sizeof(StartupInfo));<br />
StartupInfo.cb = sizeof StartupInfo ; //Only compulsory field<br />
if(CreateProcess(&quot;c:\\winnt\\notepad.exe&quot;, NULL, <br />
&nbsp;&nbsp;&nbsp;  NULL,NULL,FALSE,0,NULL,<br />
&nbsp;&nbsp;&nbsp;  NULL,&amp;StartupInfo,&amp;ProcessInfo))<br />
{ <br />
&nbsp;&nbsp;&nbsp;  WaitForSingleObject(ProcessInfo.hProcess,INFINITE);<br />
&nbsp;&nbsp;&nbsp;  CloseHandle(ProcessInfo.hThread);<br />
&nbsp;&nbsp;&nbsp;  CloseHandle(ProcessInfo.hProcess);<br />
} <br />
else<br />
{<br />
&nbsp;&nbsp;&nbsp;  MessageBox(&quot;The process could not be started...&quot;);<br />
}</p>
<p>Q: 如何显示文件或文件夹的属性？ <br />
SHELLEXECUTEINFO ShExecInfo ={0};<br />
ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);<br />
ShExecInfo.fMask = SEE_MASK_INVOKEIDLIST ;<br />
ShExecInfo.hwnd = NULL;<br />
ShExecInfo.lpVerb = &quot;properties&quot;;<br />
ShExecInfo.lpFile = &quot;c:\\&quot;; //can be a file as well<br />
ShExecInfo.lpParameters = &quot;&quot;; <br />
ShExecInfo.lpDirectory = NULL;<br />
ShExecInfo.nShow = SW_SHOW;<br />
ShExecInfo.hInstApp = NULL; <br />
ShellExecuteEx(&amp;ShExecInfo);</p>
<p>SW_HIDE 隐藏窗口，活动状态给令一个窗口<br />
SW_MINIMIZE 最小化窗口，活动状态给令一个窗口<br />
SW_RESTORE 用原来的大小和位置显示一个窗口，同时令其进入活动状态 <br />
SW_SHOW 用当前的大小和位置显示一个窗口，同时令其进入活动状态<br />
SW_SHOWMAXIMIZED 最大化窗口，并将其激活 <br />
SW_SHOWMINIMIZED 最小化窗口，并将其激活 <br />
SW_SHOWMINNOACTIVE 最小化一个窗口，同时不改变活动窗口<br />
SW_SHOWNA 用当前的大小和位置显示一个窗口，不改变活动窗口<br />
SW_SHOWNOACTIVATE 用最近的大小和位置显示一个窗口，同时不改变活动窗口<br />
SW_SHOWNORMAL 与SW_RESTORE相同</p>
<h3  class="related_post_title">你可能也感兴趣的文章：</h3><ul class="related_post"><li><a href="http://wangliping.net/vckey" title="VC键盘消息大全">VC键盘消息大全</a></li><li><a href="http://wangliping.net/android_boot" title="分析Android 根文件系统启动过程（init守护进程分析）">分析Android 根文件系统启动过程（init守护进程分析）</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://wangliping.net/to-study-shellexecut/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
