<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: выпадающий список в ListView]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9151&amp;type=atom" />
	<updated>2014-01-16T20:21:45Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9151</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: выпадающий список в ListView]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79255#p79255" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Спасибо за ответ!</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-01-16T20:21:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79255#p79255</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: выпадающий список в ListView]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79251#p79251" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Gui, Add, ListView, hwndhListView, ColumnTitle1|ColumnTitle2
LV_Add(&quot;&quot;, &quot;Item1&quot;, &quot;Item2&quot;), LV_Add(&quot;&quot;, &quot;Item1&quot;, &quot;Item2&quot;)
Gui, Show, y200

oCoords := GetListViewItemCoords(2, 1, hListView, 1)   ; второй ряд первая колонка
MsgBox, % &quot;Абсолютные координаты:`n`nleft = &quot; . oCoords.left . &quot;`ntop = &quot; . oCoords.top
                               . &quot;`nright = &quot; . oCoords.right . &quot;`nbottom = &quot; . oCoords.bottom
                              
oCoords := GetListViewItemCoords(2, 1, hListView)
MsgBox, % &quot;Координаты относительно верхнего левого угла контрола ListView:`n&quot;
                              . &quot;`nleft = &quot; . oCoords.left . &quot;`ntop = &quot; . oCoords.top
                              . &quot;`nright = &quot; . oCoords.right . &quot;`nbottom = &quot; . oCoords.bottom
ExitApp

GetListViewItemCoords(row, col, hListView, abs = &quot;&quot;)   ; если abs = true, координаты относительно экрана,
{                                                      ; если false — относительно контрола ListView
   VarSetCapacity(Rect, 16, 0)
   NumPut(col = 1 ? 1 : col - 1, Rect, 4, &quot;UInt&quot;)
   SendMessage, LVM_GETSUBITEMRECT := 0x1038, row - 1, &amp;Rect,, ahk_id %hListView%
   l := NumGet(Rect, &quot;UInt&quot;), t := NumGet(Rect, 4, &quot;UInt&quot;)
   r := NumGet(Rect, 8, &quot;UInt&quot;), b := NumGet(Rect, 12, &quot;UInt&quot;)
   (col = 1) ? (lprev := l, l := 0, r := lprev)
   
   if abs
   {
      WinGetPos, X, Y,,, ahk_id %hListView%
      l += X, r += X, t += Y, b += Y
   }
   
   Return {left: l, top: t, right: r, bottom: b}
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-01-16T16:57:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79251#p79251</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: выпадающий список в ListView]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79239#p79239" />
			<content type="html"><![CDATA[<p>Своего.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-01-16T14:12:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79239#p79239</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: выпадающий список в ListView]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79226#p79226" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p><strong>teadrinker</strong><br />Вы не могли бы показать, как извлечь положение и размеры нужной ячейки в ListView?</p></blockquote></div><p>Своего приложения или чужого?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-01-15T21:11:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79226#p79226</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: выпадающий список в ListView]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79218#p79218" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Serzh пишет:</cite><blockquote><p>Необходимо сделать одно из полей ListView выпадающим списком. Другими словами встроить в существующий список DropDownList.</p></blockquote></div><p>То есть ListView принадлежит окну сторонней программы?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2014-01-15T16:47:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79218#p79218</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: выпадающий список в ListView]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79214#p79214" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Вы не могли бы показать, как извлечь положение и размеры нужной ячейки в ListView?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-01-15T15:41:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79214#p79214</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: выпадающий список в ListView]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79206#p79206" />
			<content type="html"><![CDATA[<p>&quot;Сделать&quot; одно из полей ListView выпадающим списком невозможно, ListView не поддерживает такой функции. Просто сделайте своё GUI со списком поверх него.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-01-14T00:02:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79206#p79206</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: выпадающий список в ListView]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79205#p79205" />
			<content type="html"><![CDATA[<p>Необходимо сделать одно из полей ListView выпадающим списком. Другими словами встроить в существующий список DropDownList.</p><p>Например как в Exel:<br /><span class="postimg"><img src="http://blogs.technet.com/blogfiles/tasush/WindowsLiveWriter/Excel_C956/image_thumb_4.png" alt="http://blogs.technet.com/blogfiles/tasush/WindowsLiveWriter/Excel_C956/image_thumb_4.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[Serzh]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31572</uri>
			</author>
			<updated>2014-01-13T23:16:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79205#p79205</id>
		</entry>
</feed>
