{"id":1505,"date":"2014-12-15T14:08:00","date_gmt":"2014-12-15T06:08:00","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=1505"},"modified":"2014-12-15T14:08:00","modified_gmt":"2014-12-15T06:08:00","slug":"%e5%9c%a8vcl%e4%b8%ad%e6%98%be%e7%a4%ba%e4%b8%80%e4%b8%aa%e9%9d%9e%e6%bf%80%e6%b4%bb%e7%8a%b6%e6%80%81%e7%9a%84%e7%aa%97%e5%8f%a3","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=1505","title":{"rendered":"\u5728VCL\u4e2d\u663e\u793a\u4e00\u4e2a\u975e\u6fc0\u6d3b\u72b6\u6001\u7684\u7a97\u53e3"},"content":{"rendered":"<p>\u5728VCL\u4e2d\uff0c\u8c03\u7528\u7a97\u4f53\u7684TForm.Show\u65f6\uff0c\u7a97\u53e3\u88ab\u81ea\u52a8\u6fc0\u6d3b\u5230\u524d\u53f0\uff0c\u4ece\u800c\u4ee4\u524d\u9762\u7684\u7a97\u53e3\u5931\u53bb\u4e86\u7126\u70b9\u3002\u6709\u7684\u65f6\u5019\uff0c\u8fd9\u5e76\u4e0d\u662f\u6211\u4eec\u9700\u8981\u7684\u6548\u679c\uff0c\u6211\u4eec\u53ef\u80fd\u53ea\u662f\u663e\u793a\u4e00\u4e2a\u6bd4\u8f83\u590d\u6742\u7684\u63d0\u793a\u7a97\u53e3\uff0c\u8fd9\u4e2a\u7a97\u53e3\u9ed8\u8ba4\u5e76\u4e0d\u9700\u8981\u83b7\u53d6\u7126\u70b9\uff0c\u800cVCL\u5e76\u6ca1\u6709\u63d0\u4f9b\u8fd9\u6837\u4e00\u4e2a\u51fd\u6570\u3002<\/p>\n<p>\u4eca\u5929\u5728\u7fa4\u91cc\u8bdd\u8be2\u95ee\u65f6\uff0c\u4ee5\u524d\u4e00\u76f4\u6ca1\u6709\u60f3\u660e\u767d\u600e\u4e48\u641e\u5b9aTForm\u7684Visible\u5c5e\u6027\uff0c\u4e0d\u5f97\u95f2\u7ed9\u51fa\u4e86\u4e00\u4e2a\u5f88\u7b80\u5355\u89e3\u51b3\u529e\u6cd5\uff0c\u76f4\u63a5@\u5c5e\u6027\u7684\u5730\u5740\u5f3a\u5236\u8d4b\u503c\u5373\u53ef\u3002\u597d\u5427\uff0c\u5269\u4e0b\u7684\u4e8b\u60c5\u5c31\u7b80\u5355\u5316\u4e86\uff0c\u4e0b\u9762\u7684\u51fd\u6570\u7528\u4e8e\u5b9e\u73b0\u8fd9\u4e00\u6548\u679c\uff1a<\/p>\n<pre class=\"lang:delphi decode:true\">procedure ShowNoActive(AForm: TForm);\r\nbegin\r\nShowWindow(AForm.Handle, SW_SHOWNA);\r\nPBoolean(@AForm.Visible)^ := True;\r\nAForm.Perform(CM_VISIBLECHANGED, 1, 0);\r\nend;<\/pre>\n<p>\u8981\u663e\u793a\u4e00\u4e2a\u521d\u59cb\u4e3a\u975e\u6fc0\u6d3b\u72b6\u6001\u7684\u7a97\u53e3\u65f6\uff0c\u53ea\u9700\u8981\u8c03\u7528\u4e00\u53e5 ShowNoActive(AForm) \u5373\u53ef\uff0c\u800c\u9690\u85cf\u5b83\u76f4\u63a5\u8c03\u7528\u539f\u6765\u7684Hide\u6216Visible\u8d4b\u503c\u4e3aFalse\u5373\u53ef\u3002\u8fd9\u518d\u4e00\u6b21\u8bc1\u660e\u4e86\u5c5e\u6027\u662f\u4e00\u4e2a\u8bed\u6cd5\u7cd6\u7684\u4f20\u8a00\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728VCL\u4e2d\uff0c\u8c03\u7528\u7a97\u4f53\u7684TForm.Sho [&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":[69,8,21],"tags":[237,236,235],"class_list":["post-1505","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-misc","tag-vcl","tag-236","tag-235"],"views":2863,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1505","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=1505"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1505\/revisions"}],"predecessor-version":[{"id":1506,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1505\/revisions\/1506"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}