<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; HTA: Иконки из shell32.dll в ImageList Activex control]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8229&amp;type=atom" />
	<updated>2013-04-11T22:07:43Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8229</id>
		<entry>
			<title type="html"><![CDATA[Re: HTA: Иконки из shell32.dll в ImageList Activex control]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71306#p71306" />
			<content type="html"><![CDATA[<p>Win7x32 - на res:// не реагирует... Иконка остаётся умолчательной. А я уже, было, обрадовался.</p>]]></content>
			<author>
				<name><![CDATA[Serge Yolkin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27503</uri>
			</author>
			<updated>2013-04-11T22:07:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71306#p71306</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[HTA: Иконки из shell32.dll в ImageList Activex control]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71280#p71280" />
			<content type="html"><![CDATA[<p>Уважаемые форумчане, возможно ли передать ссылку на картинку (иконку) из shell32.dll в imagelist? Сам HTA вполне нормально относится к псевдопротоколу res://, но контрол, в частности LoadPicture() не хочет его понимать. Может надо через GetObject? Ниже код примера:<br /></p><div class="codebox"><pre><code>&lt;HTML&gt;
&lt;HEAD&gt;
&lt;META HTTP-EQUIV=Content-Type content=&#039;text/html;charset=windows-1251&#039;&gt;
&lt;TITLE&gt;Пример ImageList в HTA&lt;/TITLE&gt;
&lt;HTA:APPLICATION ID=&quot;ImgList&quot;
     ApplicationName = &quot;ImgList_HTA&quot;
     ICON=&quot;res://shell32.dll/2/230&quot;
     BORDER = &quot;thin&quot;
     INNERBORDER = &quot;no&quot;
     CONTEXTMENU = &quot;no&quot;
     MAXIMIZEBUTTON = &quot;no&quot;
     MinimizeButton = &quot;no&quot;
     SysMenu = &quot;yes&quot;
     SELECTION = &quot;no&quot;
     SHOWINTASKBAR = &quot;yes&quot;
     SCROLL = &quot;no&quot;
     SINGLEINSTANCE=&quot;yes&quot;
     WindowState = &quot;Normal&quot;
     /&gt;

&lt;object classid=&quot;clsid:2C247F23-8591-11D1-B16A-00C0F0283628&quot; 
id=&quot;ImageList&quot; width=&quot;32&quot; height=&quot;32&quot;&gt; 
  &lt;param name=&quot;_ExtentX&quot; value=&quot;946&quot;&gt; 
  &lt;param name=&quot;_ExtentY&quot; value=&quot;946&quot;&gt; 
  &lt;param name=&quot;BackColor&quot; value=&quot;-2147483643&quot;&gt; 
  &lt;param name=&quot;ImageWidth&quot; value=&quot;16&quot;&gt; 
  &lt;param name=&quot;ImageHeight&quot; value=&quot;16&quot;&gt; 
  &lt;param name=&quot;MaskColor&quot; value=&quot;12632256&quot;&gt; 
  &lt;param name=&quot;UseMaskColor&quot; value=&quot;-1&quot;&gt; 
  &lt;param name=&quot;_Version&quot; value=&quot;393216&quot;&gt; 
&lt;/object&gt; 
&lt;SCRIPT language = &quot;VBScript&quot;&gt;
&#039;ImageList.ListImages.Add ,,LoadPicture(&quot;D:\Images\1.ico&quot;)

&#039;ImageList.ListImages.Add ,,LoadPicture(GetObject(&quot;res://C:\WINDOWS\system32\shell32.dll/2/230&quot;))
ImageList.ListImages.Add ,,LoadPicture(&quot;res://C:\WINDOWS\system32\shell32.dll/2/230&quot;)


&lt;/SCRIPT&gt;
&lt;/HEAD&gt;
&lt;BODY bgcolor = &quot;#EEEEEE&quot;&gt;
&lt;TABLE style = width:100%&gt;
&lt;TR&gt;&lt;TD&gt;&lt;IMG src=&quot;res://shell32.dll/2/230&quot;&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;/TABLE&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Ambassador]]></name>
			</author>
			<updated>2013-04-11T10:38:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71280#p71280</id>
		</entry>
</feed>
