{"id":1999,"date":"2015-02-05T18:50:37","date_gmt":"2015-02-05T10:50:37","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=1999"},"modified":"2015-02-05T18:51:41","modified_gmt":"2015-02-05T10:51:41","slug":"%e4%b8%80%e4%b8%aa%e8%9b%ae%e6%97%a0%e8%81%8a%e7%9a%84%e5%87%bd%e6%95%b0%ef%bc%8c%e8%a2%ab%e9%80%bc%e5%86%99%e7%9a%84","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=1999","title":{"rendered":"\u4e00\u4e2a\u86ee\u65e0\u804a\u7684\u51fd\u6570\uff0c\u5728\u4e3b\u7ebf\u7a0b\u4e2d\u975e\u963b\u585e\u7684\u65b9\u5f0f\u5ef6\u65f6\u4e00\u6bb5\u65f6\u95f4"},"content":{"rendered":"<p>\u5728\u4e3b\u7ebf\u7a0b\u4e2d\u975e\u963b\u585e\u7684\u65b9\u5f0f\u5ef6\u65f6\u4e00\u6bb5\u65f6\u95f4\uff0c\u4ec5\u9002\u7528\u4e8e Windows \u5e73\u53f0\uff1a<\/p>\n<pre class=\"lang:delphi decode:true\"> procedure MsgWait(ADelay:Integer;ABreakOnAppQuit:Boolean);\r\n  var\r\n    AHandle:THandle;\r\n    T:Cardinal;\r\n  begin\r\n  while ADelay&gt;0 do\r\n    begin\r\n    T:=GetTickCount;\r\n    if MsgWaitForMultipleObjects(0,AHandle,false,ADelay,QS_ALLINPUT)=WAIT_OBJECT_0 then\r\n      begin\r\n      Application.ProcessMessages;\r\n      if Application.Terminated and ABreakOnAppQuit then\r\n        Break;\r\n      end;\r\n    Dec(ADelay,GetTickCount-T);\r\n    end;\r\n  end;<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4e3b\u7ebf\u7a0b\u4e2d\u975e\u963b\u585e\u7684\u65b9\u5f0f\u5ef6\u65f6\u4e00\u6bb5\u65f6\u95f4\uff0c\u4ec5\u9002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[],"class_list":["post-1999","post","type-post","status-publish","format-standard","hentry","category-delphi"],"views":5121,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1999","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1999"}],"version-history":[{"count":2,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1999\/revisions"}],"predecessor-version":[{"id":2001,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1999\/revisions\/2001"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1999"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}