<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Окно в окне]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13072&amp;type=atom" />
	<updated>2017-10-08T07:12:37Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13072</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Окно в окне]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119901#p119901" />
			<content type="html"><![CDATA[<p>Э-э-э...<br /></p><div class="codebox"><pre><code>Gui, 1:Default
Gui, +hwndhwin1
Gui, Add, button, x10 y10 gShowWin2, ShowWin2
Gui, Show, w200 h200

Gui, 2:Default
Gui, +Parent1
Gui, Add, text, x10 y10 w100, text text text text text text text text text text
Gui, Add, button, x10 y+10 gB2, B2
return

GuiClose:
   ExitApp

ShowWin2:
   Gui, 2:show, w150 x10 y40
   return

B2:
   msgbox
   return

</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-10-08T07:12:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119901#p119901</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Окно в окне]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119899#p119899" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Gui,1:+hwndhwin1
Gui,1:Add,button,x10 y10 gShowWin2,ShowWin2
Gui,1:Show, w200 h200

Gui,2:+hwndhwin2
Gui,2:+0x40000000 -0x80000000 ;+WS_CHILD -WS_POPUP
Gui,2:Add,text,x10 y10 w100 ,text text text text text text text text text text
Gui,2:Add,button,x10 y+10 gB2,B2
return

GuiClose:
ExitApp

ShowWin2:
Gui,2:show,w150
SetParent(hwin2,hwin1,,10,40)
return

B2:
msgbox
return



SetParent(hwnd,hNewParent,ClassNN=&quot;&quot;,x=0,y=0)
{
  if ClassNN
    ControlGet,hNewParent,Hwnd,,%ClassNN%,ahk_id %hNewParent%
  oldParent:=DllCall(&quot;SetParent&quot;,&quot;ptr&quot;,hwnd,&quot;ptr&quot;,hNewParent)
  WinMove,ahk_id %hwnd%,,%x%,%y%
  return oldParent
}


</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2017-10-08T05:54:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119899#p119899</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Окно в окне]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119896#p119896" />
			<content type="html"><![CDATA[<p>Нужно создать второе окно в окне AHK.<br />Пример: &quot;кнопка&quot; если пользователь нажмет на кнопку то откроется окно в <strong>самом</strong> скрипте, как реализовать?</p>]]></content>
			<author>
				<name><![CDATA[dmixxser]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38799</uri>
			</author>
			<updated>2017-10-07T21:31:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119896#p119896</id>
		</entry>
</feed>
