{"id":57,"date":"2007-05-11T21:06:19","date_gmt":"2007-05-11T19:06:19","guid":{"rendered":" http:\/\/www.nsonic.de\/blog\/2007\/05\/system-images\/"},"modified":"2007-05-11T21:06:23","modified_gmt":"2007-05-11T19:06:23","slug":"system-images","status":"publish","type":"post","link":"https:\/\/www.nsonic.de\/blog\/2007\/05\/system-images\/","title":{"rendered":"System Images"},"content":{"rendered":"<p>[code lang=&#8221;delphi&#8221;]Procedure CreateImages;<br \/>\n   var<br \/>\n     SysIL: HImageList;<br \/>\n     SFI: TSHFileInfo;<br \/>\n   begin<br \/>\n     \/\/ Create an image list component<br \/>\n     MyTreeView.Images := TImageList.Create(Self);<br \/>\n     \/\/ This gets the small image list.  Replace SHGFI_SMALLICON with<br \/>\n     \/\/ SHGFI_LARGEICON for large images.<br \/>\n     SysIL := SHGetFileInfo(&#8221;, 0, SFI, SizeOf(SFI),<br \/>\n        SHGFI_SYSICONINDEX or SHGFI_SMALLICON);<br \/>\n     if SysIL <> 0 then begin<br \/>\n       \/\/ Assign the system list to the component<br \/>\n       Images.Handle := SysIL;<br \/>\n           \/\/ The following prevents the image list handle from being<br \/>\n           \/\/ destroyed when the component is.<br \/>\n       Images.ShareImages := TRUE;<br \/>\n     end;<br \/>\nEnd;[\/code]<\/p>\n<p>[tags]Delphi, API[\/tags]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[code lang=&#8221;delphi&#8221;]Procedure CreateImages; var SysIL: HImageList; SFI: TSHFileInfo; begin \/\/ Create an image list component MyTreeView.Images := TImageList.Create(Self); \/\/ This gets the small&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[11],"tags":[84,75],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p71Tml-V","_links":{"self":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/57"}],"collection":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/comments?post=57"}],"version-history":[{"count":0,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/57\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/media?parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/categories?post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/tags?post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}