<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Добавить окну эффект тени]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=12310</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=12310&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Добавить окну эффект тени».]]></description>
		<lastBuildDate>Sat, 14 Jan 2017 10:29:29 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Добавить окну эффект тени]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=111032#p111032</link>
			<description><![CDATA[<p>Разобрался. <br />Чтобы в своем гуи работало, надо в настройках &quot;perfomance options&quot; поставить &quot;show shadows under windows&quot;. <br />Но в чужом у меня не получается - пишет access denied.<br />Тут либо надо dll в процесс вставлять, либо хук какой-то делать.<br />Надо ждать помощи от тех, кто в теме - <strong>teadrinker</strong>, <strong>YMP</strong>...<br /></p><div class="codebox"><pre><code>hwnd := WinExist(&quot;ahk_class MozillaWindowClass&quot;)
GetClassLong := DllCall(&quot;GetClassLong&quot; (A_PtrSize=8 ? &quot;Ptr&quot;:&quot;&quot;), &quot;Ptr&quot;, hwnd, &quot;int&quot;, -26)
if A_LastError != 0
   msgbox % &quot;GetClassLong error:`n&quot; GetErrorString(A_LastError)
DllCall(&quot;SetClassLong&quot; (A_PtrSize=8 ? &quot;Ptr&quot;:&quot;&quot;), &quot;Ptr&quot;, hwnd, &quot;int&quot;, -26, &quot;Ptr&quot;, GetClassLong | 0x20000)
if A_LastError != 0
   msgbox % &quot;SetClassLong error:`n&quot; GetErrorString(A_LastError)
return



GetErrorString(Errornumber)
{
	VarSetCapacity(ErrorString, 1024)		;String to hold the error-message.
	
	DllCall(&quot;FormatMessage&quot;
			, UINT, 0x00001000			;FORMAT_MESSAGE_FROM_SYSTEM: The function should search the system message-table resource(s) for the requested message.
			, UINT, NULL					;A handle to the module that contains the message table to search.
			, UINT, Errornumber
			, UINT, 0							;Language-ID is automatically retreived
			, Str, ErrorString
			, UINT, 1024					;Buffer-Length
			, str, &quot;&quot;)					;An array of values that are used as insert values in the formatted message. (not used)
	
	StringReplace, ErrorString, ErrorString, `r`n, %A_Space%, All		;Replaces newlines by A_Space for inline-output
	
	return %ErrorString%
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sat, 14 Jan 2017 10:29:29 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=111032#p111032</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Добавить окну эффект тени]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=111022#p111022</link>
			<description><![CDATA[<p><strong>ypppu</strong>, у меня этот код не работает (тень к гуи не добавляет), хотя по справке с майкрософт должен.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Fri, 13 Jan 2017 23:38:15 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=111022#p111022</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Добавить окну эффект тени]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=111019#p111019</link>
			<description><![CDATA[<p><strong>ypppu</strong>, да уже видел, попробовал, у меня тень как-то &quot;задвоилась&quot; + не получилось добавить стиль не AHK GUI.</p><p>Вот еще нашел:<br /><a href="https://marcin.floryan.pl/blog/2010/08/wpf-drop-shadow-with-windows-dwm-api">https://marcin.floryan.pl/blog/2010/08/ … ws-dwm-api</a><br />Насколько я понимаю C#, вроде то, что нужно, только как тоже самое записать на AHK.</p>]]></description>
			<author><![CDATA[null@example.com (upsi_daezium)]]></author>
			<pubDate>Fri, 13 Jan 2017 21:27:57 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=111019#p111019</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Добавить окну эффект тени]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=111010#p111010</link>
			<description><![CDATA[<p>На оф. форуме как-то к GUI приспособили: <a href="https://autohotkey.com/board/topic/24934-shadow/">https://autohotkey.com/board/topic/24934-shadow/</a>.</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Fri, 13 Jan 2017 19:06:20 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=111010#p111010</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Добавить окну эффект тени]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=111009#p111009</link>
			<description><![CDATA[<p>Путем поисков нарыл:<br /><a href="https://www.autoitscript.com/forum/topic/90917-add-a-drop-shadow-to-native-autoit-gui-forms-and-dialogs/">https://www.autoitscript.com/forum/topi … d-dialogs/</a><br />Вроде то, что нужно, только для autoit, теперь думаю, для для&nbsp; AHK переделать.</p>]]></description>
			<author><![CDATA[null@example.com (upsi_daezium)]]></author>
			<pubDate>Fri, 13 Jan 2017 17:27:58 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=111009#p111009</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Добавить окну эффект тени]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=110989#p110989</link>
			<description><![CDATA[<p>День добрый.<br />Запускаю внешнюю программку из скрипта, а там так неудобно сделано, все окно белое и другие элементы в светлых тонах, плохо видно. Причем никакой границы у окна нет и тени тоже нет.<br />Я добавил окну&nbsp; Style +0x800000&nbsp; WS_BORDER, стало получше, а добавить тень так и не получилось.<br />Пробовал другие стили, которые нашел на форуме, но, пока не помогло.<br />Так же читал документацию на сайте Майкрософт об CS_DROPSHADOW и SPI_SETDROPSHADOW, но, как там это все сделать пока знаний недостаточно.<br />Может быть кто-нибудь решал подобную задачу?</p>]]></description>
			<author><![CDATA[null@example.com (upsi_daezium)]]></author>
			<pubDate>Fri, 13 Jan 2017 11:29:59 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=110989#p110989</guid>
		</item>
	</channel>
</rss>
