<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Прозрачность картинок в GUI]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5177&amp;type=atom" />
	<updated>2014-04-07T12:46:38Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5177</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность картинок в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81561#p81561" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Foma пишет:</cite><blockquote><p>Старая линия не стирается.</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-04-07T12:46:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81561#p81561</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность картинок в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81558#p81558" />
			<content type="html"><![CDATA[<p>Немного изменил, чтобы линия двигалась не вдоль себя.&nbsp; Старая линия не стирается.</p><div class="codebox"><pre><code>x1 := 1
y1 := 2
x2 := 10
y2 := 20
Width := Height := 500
Gui, Add, Pic, hwndhPic x0 y0 w%Width% h%Height%  ; в этом контроле будем рисовать
Gui, Show, w%Width% h%Height%

OnExit, Exit
OnMessage(0xF, &quot;WM_PAINT&quot;)  ; поддержка изображения при перерисовке окна

pToken := Gdip_Startup()
hbm := CreateDIBSection(Width, Height)
hdc := CreateCompatibleDC()
obm := SelectObject(hdc, hbm)
G := Gdip_GraphicsFromhdc(hdc)
Gdip_SetSmoothingMode(G, 4)

pFillBrush := Gdip_BrushCreateSolid(0xffAAAAAA)   ; кисть для заливки
Gdip_FillRectangle(G, pFillBrush, 0, 0, Width, Height)   ; заливаем белым поле рисования 
Gdip_DeleteBrush(pFrameBrush)

pPen := Gdip_CreatePen(0xff0000FF, 1)   ; карандаш для рисования

hPicDC := GetDC(hPic)  ; получаем контекст контрола, чтобы переносить в него изображение

x1 := y1 := 0
Loop, 100
{
   x1 := x1 + 1
   y1 := y1 + 2
   x2 := x2 + 3
   y2 := y2 + 4
   Gdip_DrawLine(G, pPen, x1, y1, x2, y2)
   BitBlt(hPicDC, 0, 0, Width, Height, hdc, 0, 0)
   Sleep, 10
}

Gdip_DeletePen(pPen)
return

GuiClose:
   ExitApp
   
Exit:
   ReleaseDC(hPicDC, hPic)
   SelectObject(hdc, obm), DeleteObject(hbm)
   DeleteDC(hdc), Gdip_DeleteGraphics(G)
   Gdip_Shutdown(pToken)
   ExitApp

WM_PAINT()   ; поддержка изображения при перерисовке окна
{
   global
   SetTimer, Timer, -10
   Return

Timer:
   BitBlt(hPicDC, 0, 0, Width, Height, hdc, 0, 0)
   Return
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Foma]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31521</uri>
			</author>
			<updated>2014-04-07T11:54:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81558#p81558</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность картинок в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81527#p81527" />
			<content type="html"><![CDATA[<p>Спасибо, буду разбираться.</p>]]></content>
			<author>
				<name><![CDATA[Foma]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31521</uri>
			</author>
			<updated>2014-04-06T13:21:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81527#p81527</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность картинок в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81518#p81518" />
			<content type="html"><![CDATA[<p>Вот пример привязки одного окна к другому:<br /></p><div class="codebox"><pre><code>Width := Height := 300
Gui, Add, Pic, hwndhPic x0 y0 w%Width% h%Height%  ; к этому контролу привяжем окно для рисования
Gui, Show, w%Width% h%Height%

OnMessage(0x3, &quot;WM_MOVE&quot;)   ; отслеживаем перемещения окна
OnExit, Exit

; WS_EX_LAYERED := 0x80000, WS_EX_TRANSPARENT := 0x20
Gui, 2:-Caption +E0x80020 +hwndID +Owner1   ; в этом окне будем рисовать
Gui, 2:Show, NA

pToken := Gdip_Startup()
hbm := CreateDIBSection(Width, Height)
hdc := CreateCompatibleDC()
obm := SelectObject(hdc, hbm)
G := Gdip_GraphicsFromhdc(hdc)
Gdip_SetSmoothingMode(G, 4)

pPen := Gdip_CreatePen(0xff0000FF, 1)   ; карандаш для рисования

x1 := y1 := 0
WinGetPos, x, y,,, ahk_id %hPic%
Loop % Width
{
   Gdip_DrawLine(G, pPen, x1, y1, x2 := x1++, y2 := y1++)
   UpdateLayeredWindow(ID, hdc, x, y, Width, Height)
   Sleep, 10
}
Gdip_DeletePen(pPen)
return

Exit:
   SelectObject(hdc, obm), DeleteObject(hbm)
   DeleteDC(hdc), Gdip_DeleteGraphics(G)
   Gdip_Shutdown(pToken)
   ExitApp

GuiClose:
   ExitApp
   
WM_MOVE()
{
   global
   WinGetPos, x, y,,, ahk_id %hPic%
   UpdateLayeredWindow(ID, hdc, x, y, Width, Height)
}</code></pre></div><p>Рисовать можно также непосредственно в обычном окне, пример:<br /></p><div class="codebox"><pre><code>Width := Height := 300
Gui, Add, Pic, hwndhPic x0 y0 w%Width% h%Height%  ; в этом контроле будем рисовать
Gui, Show, w%Width% h%Height%

OnExit, Exit
OnMessage(0xF, &quot;WM_PAINT&quot;)  ; поддержка изображения при перерисовке окна

pToken := Gdip_Startup()
hbm := CreateDIBSection(Width, Height)
hdc := CreateCompatibleDC()
obm := SelectObject(hdc, hbm)
G := Gdip_GraphicsFromhdc(hdc)
Gdip_SetSmoothingMode(G, 4)

pFillBrush := Gdip_BrushCreateSolid(0xffffffff)   ; кисть для заливки
Gdip_FillRectangle(G, pFillBrush, 0, 0, Width, Height)   ; заливаем белым поле рисования 
Gdip_DeleteBrush(pFrameBrush)

pPen := Gdip_CreatePen(0xff0000FF, 1)   ; карандаш для рисования

hPicDC := GetDC(hPic)  ; получаем контекст контрола, чтобы переносить в него изображение

x1 := y1 := 0
Loop % Width
{
   Gdip_DrawLine(G, pPen, x1, y1, x2 := x1++, y2 := y1++)
   BitBlt(hPicDC, 0, 0, Width, Height, hdc, 0, 0)
   Sleep, 10
}

Gdip_DeletePen(pPen)
return

GuiClose:
   ExitApp
   
Exit:
   ReleaseDC(hPicDC, hPic)
   SelectObject(hdc, obm), DeleteObject(hbm)
   DeleteDC(hdc), Gdip_DeleteGraphics(G)
   Gdip_Shutdown(pToken)
   ExitApp

WM_PAINT()   ; поддержка изображения при перерисовке окна
{
   global
   SetTimer, Timer, -10
   Return

Timer:
   BitBlt(hPicDC, 0, 0, Width, Height, hdc, 0, 0)
   Return
}</code></pre></div><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Когда-то выкладывал здесь более сложный пример рисования в окне.</div><div class="fancy_spoiler"><p>Анимированная синусоида:<br /></p><div class="codebox"><pre><code>   If !pToken := Gdip_Startup()
   {
      MsgBox, 48, Ошибка GDI+, Убедитесь в наличии gdiplus.dll в вашей системе!
      ExitApp
   }

   OnExit, Exit
   SetBatchLines, -1
   SetWinDelay, 0

   k1 = 52   ; коэффициент частоты
   k2 = 80   ; коэффициент амплитуды
   Width = 492
   Height = 250       ; размеры картинки
   SleepDuration = 6  ; пауза в цикле
   Frame = 3          ; рамка

   H2 := Height//2
   X := (A_ScreenWidth-Width)//2
   Y := (A_ScreenHeight-Height)//2

   DllCall(&quot;Winmm\timeBeginPeriod&quot;, UInt, 3)

   hbm := CreateDIBSection(Width, Height)
   hdc := CreateCompatibleDC()
   obm := SelectObject(hdc, hbm)
   G := Gdip_GraphicsFromHDC(hdc)
   Gdip_SetSmoothingMode(G, 4)

   pFrameBrush := Gdip_BrushCreateSolid(0xffC4C0B8)  ; кисть для рамки
   pFillBrush := Gdip_BrushCreateSolid(0xffffffff)   ; кисть для заливки
   pGrayPen := Gdip_CreatePen(0xff808080, 1)         ; карандаш для оси
   pBluePen := Gdip_CreatePen(0xff0000ff, 1)         ; карандаш для графика

   Gdip_FillRectangle(G, pFrameBrush, -1, -1, Width+2, Height+2)   ; с запасом
   Gdip_FillRectangle(G, pFillBrush, Frame, Frame, Width-Frame*2-1, Height-Frame*2-1)
   Gdip_DeleteBrush(pFrameBrush)
   Gdip_DrawLine(G, pGrayPen, Frame, H2, Width-Frame-1, H2)

   Gui, Color, 0xECE9D8
   Gui, Add, Pic, x20 y20 w%Width% h%Height% hwndhPic
   Gui, Add, Button, % &quot;x&quot; (Width - 40)//2 &quot; y&quot; 35 + Height &quot; w80 h23 gPause vButton&quot;, Start
   Gui, Show, % &quot;w&quot; Width+40 &quot; h&quot; Height + 75

   hPicDC := GetDC(hPic)  ; получаем контекст контрола, чтобы переносить в него изображение
   BitBlt(hPicDC, 0, 0, Width, Height, hdc, 0, 0)  ; переносим рисунок в контекст контрола
   OnMessage(0xF, &quot;WM_PAINT&quot;)  ; поддержка изображения при перерисовке окна

   Loop
   {
      i := !i
      x1 := Frame+1
      y1 := Round((-Sin((x1 - Frame - 1)*k1/1000))*k2 + H2)
      While x1 &lt; Width-Frame-2
      {
         DllCall(&quot;Sleep&quot;, UInt, SleepDuration)
         if !p
            Continue
         x2 := x1 + 1
         y2 := Round((-Sin((x2 - Frame - 1)*k1/1000))*k2 + H2)
         if i
            Gdip_DrawLine(G, pBluePen, x1, y1, x2, y2)
         Else
         {
            end := x2 = Width-Frame-2
            Gdip_FillRectangle(G, pFillBrush, x1-1, Frame+1, end ? 3 : 2, Height-Frame*2-2)
            Gdip_DrawLine(G, pGrayPen, x1-1, H2, end ? x2+1 : x2, H2)
         }
         x1 := x2, y1 := y2
         BitBlt(hPicDC, 0, 0, Width, Height, hdc, 0, 0)
      }
   }

Pause:
   GuiControl,, Button, % (p := !p) ? &quot;Stop&quot; : &quot;Start&quot;
   Return

GuiClose:
GuiEscape:
   ExitApp

Exit:
   Gdip_DeletePen(pGrayPen), Gdip_DeletePen(pBluePen), Gdip_DeleteBrush(pFillBrush)
   ReleaseDC(hPicDC, hPic)
   SelectObject(hdc, obm), DeleteObject(hbm), DeleteDC(hdc), Gdip_DeleteGraphics(G)
   Gdip_Shutdown(pToken)
   DllCall(&quot;Winmm\timeEndPeriod&quot;, UInt, 3)
   ExitApp

WM_PAINT()   ; поддержка изображения при перерисовке окна
{
   global
   SetTimer, Timer, -10
   Return

Timer:
   BitBlt(hPicDC, 0, 0, Width, Height, hdc, 0, 0)
   Return
}</code></pre></div><p>Нажать кнопку &quot;Старт&quot;.</p></div></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-04-05T22:44:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81518#p81518</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность картинок в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81493#p81493" />
			<content type="html"><![CDATA[<p>Полностью &quot;привязать&quot; подвижную графику (в примере линию) к главному окну.&nbsp; Уже всё получилось, кроме момента перетаскивания окна.&nbsp; Линия остаётся на месте, даже если под ней уже нет окна. Вплоть до отпускания ЛКМ.</p>]]></content>
			<author>
				<name><![CDATA[Foma]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31521</uri>
			</author>
			<updated>2014-04-04T22:41:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81493#p81493</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность картинок в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81489#p81489" />
			<content type="html"><![CDATA[<p>А толком можете сказать, какого результата хотите добиться?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-04-04T16:27:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81489#p81489</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность картинок в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81487#p81487" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><div class="quotebox"><cite>Foma пишет:</cite><blockquote><p>Может что-то нужно вывести из цикла наружу или вообще убрать?</p></blockquote></div><p>Правильно так:</p></blockquote></div><p>&nbsp; Не стирается предыдущая линия. Получается не движение линии, а рисование трапеции.</p>]]></content>
			<author>
				<name><![CDATA[Foma]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31521</uri>
			</author>
			<updated>2014-04-04T14:29:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81487#p81487</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность картинок в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81486#p81486" />
			<content type="html"><![CDATA[<p>При смещении главного окна синяя линия не следует за ним до самого отпускания ЛКМ.<br /></p><div class="codebox"><pre><code>x2 := 0
y2 := 0

Gui, 8: Show, x10 y10 w1000 h800, Главное
WinGet,hwnd,ID,Главное

pToken := Gdip_Startup()
Gui, 9: -Caption +E0x80000 +HWNDhwnd1 +LastFound +ToolWindow +OwnDialogs +Owner%hwnd% ;+AlwaysOnTop 
Gui, 9: Show, NA

F1::
gosub, draw
return

draw:
loop, 500
        {
        WinGetPos,xx,yy,ww,hh,Главное
        hbm := CreateDIBSection(A_ScreenWidth, A_ScreenHeight)
        hdc := CreateCompatibleDC()
        obm := SelectObject(hdc, hbm)
        G := Gdip_GraphicsFromhdc(hdc)
        Gdip_SetSmoothingMode(G, 4)
        pPen := Gdip_CreatePen(0xff0000FF, 1)
        Gdip_DrawLine(G, pPen, xx, yy, x2, y2)
        Gdip_DeleteBrush(pPen)
        UpdateLayeredWindow(hwnd1, hdc, xx, yy, ww, hh)
        SelectObject(hdc, obm)
        DeleteObject(hbm)
        DeleteDC(hdc)
        Gdip_DeleteGraphics(G)
        xx := xx + 1
        yy := yy + 1
        x2 := x2 + 1
        y2 := y2 + 1
        sleep, 50
        }
Return
    
    
~Esc::
Clean:
    Gui 9: Destroy
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Foma]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31521</uri>
			</author>
			<updated>2014-04-04T14:27:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81486#p81486</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность картинок в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81471#p81471" />
			<content type="html"><![CDATA[<p>Приведите свой код.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-04-03T22:14:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81471#p81471</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность картинок в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81465#p81465" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><div class="quotebox"><cite>Foma пишет:</cite><blockquote><p>Может что-то нужно вывести из цикла наружу или вообще убрать?</p></blockquote></div><p>Правильно так:</p></blockquote></div><p>&nbsp; Спасибо, учту.</p><div class="quotebox"><blockquote><p>А о каких конкретно окнах идёт речь?</p></blockquote></div><p>&nbsp; Я брал код из примера. Там поверх всего создаётся прозрачное окно gui и графика рисуется как бы отдельно от всего. А если мне нужно сделать это в непрозрачном окне с кучей других кнопок и пр? </p><p>Для окна с графикой убрал&nbsp; +AlwaysOnTop, добавил&nbsp; +Owner, привязав к основному окну. Вроде терпимо получается. Единственное, если сдвигаешь мышкой главное окно, графика остаётся на месте, иногда вне родительского окна,&nbsp; до тех пор, пока не отпустишь кнопку мыши. Смотрится не очень красиво. Было бы здорово как-то более крепко привязать окно с графикой к родительскому.</p>]]></content>
			<author>
				<name><![CDATA[Foma]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31521</uri>
			</author>
			<updated>2014-04-03T17:34:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81465#p81465</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность картинок в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81451#p81451" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Foma пишет:</cite><blockquote><p>Может что-то нужно вывести из цикла наружу или вообще убрать?</p></blockquote></div><p>Правильно так:<br /></p><div class="codebox"><pre><code>draw:
   hbm := CreateDIBSection(A_ScreenWidth, A_ScreenHeight)
   hdc := CreateCompatibleDC()
   obm := SelectObject(hdc, hbm)
   G := Gdip_GraphicsFromhdc(hdc)
   Gdip_SetSmoothingMode(G, 4)
   pPen := Gdip_CreatePen(0xff0000FF, 1)
  
   loop, 200
   {
      Gdip_DrawLine(G, pPen, x1, y1, x2, y2)
      UpdateLayeredWindow(hwnd1, hdc, 0, 0, A_ScreenWidth, A_ScreenHeight)
      x1 += 2, x2 += 2
      Sleep, 10
   }
   
   Gdip_DeletePen(pPen)
   SelectObject(hdc, obm)
   DeleteObject(hbm)
   DeleteDC(hdc)
   Gdip_DeleteGraphics(G)
   Return </code></pre></div><div class="quotebox"><cite>Foma пишет:</cite><blockquote><p>&nbsp; Совершенно не понятно как это приспособить к окну, которое должно нормально отражаться на экране. Всё равно накладывать новое окно поверх него?</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-04-03T12:27:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81451#p81451</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность картинок в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81422#p81422" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Нужно писать.</p></blockquote></div><p>&nbsp; Совершенно не понятно как это приспособить к окну, которое должно нормально отражаться на экране. Всё равно накладывать новое окно поверх него?</p>]]></content>
			<author>
				<name><![CDATA[Foma]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31521</uri>
			</author>
			<updated>2014-04-02T09:05:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81422#p81422</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность картинок в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81407#p81407" />
			<content type="html"><![CDATA[<p>Мало что понял, но вот так для себя переделал:<br /></p><div class="codebox"><pre><code>x1 := 111
y1 := 111
x2 := 222
y2 := 222
pToken := Gdip_Startup()
Gui, 9: -Caption +E0x80000 +HWNDhwnd1 +LastFound +AlwaysOnTop +ToolWindow +OwnDialogs
Gui, 9: Show, NA

F1::
gosub, draw
return

draw:
loop, 200
        {
        hbm := CreateDIBSection(A_ScreenWidth, A_ScreenHeight)
        hdc := CreateCompatibleDC()
        obm := SelectObject(hdc, hbm)
        G := Gdip_GraphicsFromhdc(hdc)
        Gdip_SetSmoothingMode(G, 4)
        pPen := Gdip_CreatePen(0xff0000FF, 1)
        Gdip_DrawLine(G, pPen, x1, y1, x2, y2)
        Gdip_DeleteBrush(pPen)
        UpdateLayeredWindow(hwnd1, hdc, 0, 0, A_ScreenWidth, A_ScreenHeight)
        SelectObject(hdc, obm)
        DeleteObject(hbm)
        DeleteDC(hdc)
        Gdip_DeleteGraphics(G)
        x1 := x1 + 2
        x2 := x2 + 2
        }
Return 
    
~Esc::
Clean:
    Gui 9: Destroy
Return</code></pre></div><p>&nbsp; Планирую использовать как подпрограмму. Прошу посмотреть не будет ли забиваться память, тормозить и т.п. Может что-то нужно вывести из цикла наружу или вообще убрать?</p>]]></content>
			<author>
				<name><![CDATA[Foma]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31521</uri>
			</author>
			<updated>2014-04-01T16:15:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81407#p81407</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность картинок в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81368#p81368" />
			<content type="html"><![CDATA[<p>Спасибо, нашёл. Буду разбираться.</p>]]></content>
			<author>
				<name><![CDATA[Foma]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31521</uri>
			</author>
			<updated>2014-03-31T18:52:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81368#p81368</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность картинок в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81354#p81354" />
			<content type="html"><![CDATA[<p>Там же, посмотрите внимательнее.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-03-31T16:55:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81354#p81354</id>
		</entry>
</feed>
