{"id":926,"date":"2010-03-03T17:30:00","date_gmt":"2010-03-03T09:30:00","guid":{"rendered":""},"modified":"2010-03-03T17:30:00","modified_gmt":"2010-03-03T09:30:00","slug":"","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/926.html","title":{"rendered":"Windows 7\u4e0bVS2008\u6ce8\u518c\u5347\u7ea7"},"content":{"rendered":"<p><html><head><meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\" \/><title>Windows 7\u4e0bVS2008\u6ce8\u518c\u5347\u7ea7<\/title><\/head><body><\/p>\n<h1 style=\"display:none\">Windows 7\u4e0bVS2008\u6ce8\u518c\u5347\u7ea7<\/h1>\n<div>\n<p>\u975eWindows\u65b9\u6cd5\u53ca\u6ce8\u518c\u7801\u53c2\u89c1\uff1a<a target=\"_blank\" href=\"http:\/\/hi.baidu.com\/hacklzt\/blog\/item\/b9d43700140534077bec2ce6.html\">VS2008\u8bd5\u7528\u7248\u7834\u89e3\u65b9\u6cd5<\/a><\/p>\n<p>\u5728Windows 7\u4e0b\uff0cVS2008\u8bd5\u7528\u7248\u65e0\u6cd5\u6b63\u5e38\u5347\u7ea7\u5230\u6b63\u5f0f\u7248\u3002\u539f\u56e0\u662f\u7ef4\u62a4\u9875\u9762\u7684\u6ce8\u518c\u7801\u8f93\u5165\u6846\u548c\u5347\u7ea7\u6309\u94ae\u88ab\u9690<\/p>\n<p>\u85cf\u3002\u901a\u8fc7\u672c\u8865\u4e01\uff0c\u53ef\u8ba9\u6ce8\u518c\u7801\u8f93\u5165\u6846\u548c\u5347\u7ea7\u6309\u94ae\u6062\u590d\u6b63\u5e38\u663e\u793a\u3002<\/p>\n<p><a target=\"_blank\" href=\"http:\/\/cid-30c78d23997c4082.skydrive.live.com\/browse.aspx\/.Public\/%e5%8e%9f%e5%88%9b%e8%bd%af%e4%bb%b6\/VS2008\">\u8865\u4e01\u4e0b\u8f7d\u5730\u5740<\/a><\/p>\n<p>\u7a0b\u5e8f\u622a\u56fe\uff1a<\/p>\n<p><span><img decoding=\"async\" class=\"blogimg\" border=\"0\" small=\"0\" src=\".\/wp-content\/uploads\/hibaidu\/82ce348634eff01ec75cc357.jpg\"><br \/>\n<\/span><\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>\u5173\u952e\u51fd\u6570\u5982\u4e0b\uff1a<\/p>\n<p>void CREGVS2008Dlg::OnBnClickedButtonAutoreg()<br \/>\n{<br \/>\n \/\/ \u8981\u67e5\u627e\u7684VS2008\u7248\u672c\u5217\u8868<br \/>\n const TCHAR* szCaption[] = {<br \/>\n  TEXT(&quot;Microsoft Visual Studio 2008 \u5b89\u88c5\u7a0b\u5e8f &#8211; \u7ef4\u62a4\u9875&quot;),  \/\/ \u7b80\u4f53\u4e2d\u6587\u7248<br \/>\n  TEXT(&quot;Microsoft Visual Studio 2008 \u5b89\u88dd\u7a0b\u5f0f &#8211; \u7dad\u8b77\u9801&quot;),  \/\/ \u7e41\u4f53\u4e2d\u6587\u7248<br \/>\n  TEXT(&quot;Microsoft Visual Studio 2008 Setup &#8211; Maintenance Page&quot;) \/\/ \u82f1\u6587\u7248<br \/>\n };<\/p>\n<p> HWND hWnd;<br \/>\n UINT i, uNum;<\/p>\n<p> \/\/ \u5b9a\u4f4d&ldquo;Microsoft Visual Studio 2008 \u5b89\u88c5\u7a0b\u5e8f &#8211; \u7ef4\u62a4\u9875&rdquo;\u7a97\u53e3<br \/>\n uNum = sizeof(szCaption) \/ sizeof(const TCHAR*);<br \/>\n for( i = 0; i &lt; uNum; i++ )<br \/>\n {<br \/>\n  hWnd = ::FindWindow( NULL, szCaption[i] );<br \/>\n  if( hWnd != NULL )<br \/>\n  { \/\/ \u7a97\u53e3\u53d1\u73b0<br \/>\n&nbsp;&nbsp;  break;<br \/>\n  }<br \/>\n }<\/p>\n<p> if( i == uNum )<br \/>\n { \/\/ \u6ca1\u6709\u627e\u5230VS2008\u7ef4\u62a4\u9875\u7a97\u53e3<br \/>\n  MessageBox( TEXT(&quot;\u6ca1\u6709\u53d1\u73b0&ldquo;Microsoft Visual Studio 2008 \u5b89\u88c5\u7a0b\u5e8f &#8211; \u7ef4\u62a4\u9875&rdquo;\u7a97\u53e3\uff01&quot;) );<br \/>\n  return;<br \/>\n }<\/p>\n<p> \/\/ \u8fdb\u5165\u7b2c1\u5c42\u5b50\u7a97\u53e3<br \/>\n hWnd = ::GetTopWindow( hWnd );<\/p>\n<p> \/\/ \u8fdb\u5165\u7b2c4\u4e2a\u5b50\u7a97\u53e3<br \/>\n for( i = 0; i &lt; 3; i++ )<br \/>\n {<br \/>\n  hWnd = ::GetNextWindow( hWnd, GW_HWNDNEXT );<br \/>\n }<\/p>\n<p> \/\/ \u8fdb\u5165\u7b2c2\u5c42\u5b50\u7a97\u53e3<br \/>\n hWnd = ::GetTopWindow( hWnd );<\/p>\n<p> \/\/ \u8fdb\u5165\u7b2c9\u4e2a\u5b50\u7a97\u53e3<br \/>\n for( i = 0; i &lt; 8; i++ )<br \/>\n {<br \/>\n  hWnd = ::GetNextWindow( hWnd, GW_HWNDNEXT );<br \/>\n }<\/p>\n<p> \/\/ \u8fdb\u5165\u6ce8\u518c\u7801\u586b\u5199\u7a97\u53e3<br \/>\n for( i = 0; i &lt; 5; i++ )<br \/>\n { \/\/ \u6fc0\u6d3b\u6587\u672c\u6846<br \/>\n  ::ShowWindow( hWnd, SW_SHOW );<br \/>\n  ::EnableWindow( hWnd, TRUE );<\/p>\n<p>  \/\/ \u8fdb\u5165\u4e0b\u4e00\u4e2a\u6587\u672c\u6846<br \/>\n  hWnd = ::GetNextWindow( hWnd, GW_HWNDNEXT );<br \/>\n }<\/p>\n<p> \/\/ \u8fdb\u5165\u5347\u7ea7\u6309\u94ae<br \/>\n for( i = 0; i &lt; 2; i++ )<br \/>\n {<br \/>\n  hWnd = ::GetNextWindow( hWnd, GW_HWNDNEXT );<br \/>\n }<\/p>\n<p> \/\/ \u6fc0\u6d3b\u5347\u7ea7\u6309\u94ae<br \/>\n ::ShowWindow( hWnd, SW_SHOW );<br \/>\n ::EnableWindow( hWnd, TRUE );<\/p>\n<p> return;<br \/>\n}<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>\u6253\u8865\u4e01\u524dVS2008\u7ef4\u62a4\u754c\u9762:<\/p>\n<p><span><img decoding=\"async\" class=\"blogimg\" border=\"0\" small=\"0\" src=\".\/wp-content\/uploads\/hibaidu\/2cd3fe1e2fe8e8c1e1fe0b50.jpg\"><br \/>\n<\/span><br \/>\n\u6253\u8865\u4e01\u540eVS2008\u7ef4\u62a4\u754c\u9762\uff1a<\/p>\n<p><span><img decoding=\"async\" class=\"blogimg\" border=\"0\" small=\"0\" src=\".\/wp-content\/uploads\/hibaidu\/5de0e910992db3f2a6ef3f51.jpg\"><br \/>\n<\/span><\/p>\n<\/p>\n<\/div>\n<p><\/body><\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows 7\u4e0bVS2008\u6ce8\u518c\u5347\u7ea7 Windows 7\u4e0bVS2008\u6ce8\u518c\u5347\u7ea7 \u975eWindows\u65b9\u6cd5\u53ca\u6ce8\u518c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-926","post","type-post","status-publish","format-standard","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=926"}],"version-history":[{"count":0,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/926\/revisions"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}