<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Blog of Zachary Snow &#187; win7</title>
	<atom:link href="http://zacharysnow.net/tag/win7/feed/" rel="self" type="application/rss+xml" />
	<link>http://zacharysnow.net</link>
	<description></description>
	<lastBuildDate>Tue, 20 Dec 2011 19:41:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using git-gui with Cygwin on Windows 7</title>
		<link>http://zacharysnow.net/2011/04/07/using-git-gui-with-cygwin-on-windows-7/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-git-gui-with-cygwin-on-windows-7</link>
		<comments>http://zacharysnow.net/2011/04/07/using-git-gui-with-cygwin-on-windows-7/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 17:11:18 +0000</pubDate>
		<dc:creator>Zachary</dc:creator>
				<category><![CDATA[cygwin]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[git-gui]]></category>
		<category><![CDATA[win7]]></category>
		<category><![CDATA[windows-7]]></category>

		<guid isPermaLink="false">http://zacharysnow.net/?p=382</guid>
		<description><![CDATA[I&#8217;ve started using git via cygwin and was running into trouble trying to pin it to my taskbar in Windows 7. First I created a .bat file in the c:\cygwin folder which launches the app standalone: @echo off C: chdir &#8230; <a href="http://zacharysnow.net/2011/04/07/using-git-gui-with-cygwin-on-windows-7/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started using git via <a href="http://www.cygwin.com/">cygwin</a> and was running into trouble trying to pin it to my taskbar in Windows 7.</p>
<p>First I created a .bat file in the c:\cygwin folder which launches the app standalone:</p>
<pre>
@echo off

C:
chdir C:\cygwin\bin

start run.exe git gui
</pre>
<p>You can change paths accordingly. Now run the batch file and pin the program to the taskbar. You&#8217;ll notice after you close the app, the icon changes and it won&#8217;t launch again.</p>
<p><a href="http://zacharysnow.net/wp-content/uploads/2011/03/git-gui-1.png"><img src="http://zacharysnow.net/wp-content/uploads/2011/03/git-gui-1.png" alt="" title="git-gui-1" width="234" height="42" class="alignnone size-full wp-image-384" /></a></p>
<p>Right click on the shortcut while holding shift and choose properties. Change the target to the batch file we wrote. You can change the icon to the git-gui icon by pointing the shortcut icon to &#8220;C:\cygwin\usr\share\git-gui\lib\git-gui.ico&#8221;.</p>
<p><a href="http://zacharysnow.net/wp-content/uploads/2011/04/git-gui-2.png"><img src="http://zacharysnow.net/wp-content/uploads/2011/04/git-gui-2-150x150.png" alt="" title="git-gui-2" width="150" height="150" class="alignnone size-thumbnail wp-image-388" /></a></p>
<p>Now if you click on the icon, the git-gui app should start up. Kill your explorer.exe in task manager and restart. If the icon is still the genie lamp, you&#8217;ll need to clear your icon cache to get the icon to look right. Credit for that from <a href="http://superuser.com/questions/72756/changing-windows-7-pinned-taskbar-icons">here</a>. Kill your explorer.exe again and while explorer is gone, start cmd.exe. From there enter the following commands:</p>
<pre>
CD /d %userprofile%\AppData\Local

DEL IconCache.db /a

EXIT
</pre>
<p>After that your icon should be there as you want.</p>
<p><a href="http://zacharysnow.net/wp-content/uploads/2011/04/git-gui-3.png"><img src="http://zacharysnow.net/wp-content/uploads/2011/04/git-gui-3.png" alt="" title="git-gui-3" width="160" height="40" class="alignnone size-full wp-image-391" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://zacharysnow.net/2011/04/07/using-git-gui-with-cygwin-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Progress Bar in Windows 7 Taskbars</title>
		<link>http://zacharysnow.net/2010/06/01/progress-bars-in-windows-7-taskbars/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=progress-bars-in-windows-7-taskbars</link>
		<comments>http://zacharysnow.net/2010/06/01/progress-bars-in-windows-7-taskbars/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 18:00:20 +0000</pubDate>
		<dc:creator>Zachary</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[win7]]></category>

		<guid isPermaLink="false">http://zacharysnow.net/?p=308</guid>
		<description><![CDATA[I decided to add progress bar to the Windows 7 Taskbar in my Timer app. I started by downloading and compiling the Windows API Code Pack in Release mode. I then added a reference to the Microsoft.WindowsAPICodePack.dll and Microsoft.WindowsAPICodePack.Shell.dll files &#8230; <a href="http://zacharysnow.net/2010/06/01/progress-bars-in-windows-7-taskbars/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I decided to add progress bar to the Windows 7 Taskbar in my Timer app.</p>
<p><a href="http://zacharysnow.net/wp-content/uploads/2010/06/TimerProgressBar.png"><img src="http://zacharysnow.net/wp-content/uploads/2010/06/TimerProgressBar.png" alt="" title="TimerProgressBar" width="139" height="40" class="alignnone size-full wp-image-309" /></a></p>
<p>I started by downloading and compiling the <a href="http://code.msdn.microsoft.com/WindowsAPICodePack">Windows API Code Pack</a> in Release mode. I then added a reference to the Microsoft.WindowsAPICodePack.dll and Microsoft.WindowsAPICodePack.Shell.dll files to the project. After that add the lines:</p>
<pre name="code" class="c#">
using Microsoft.WindowsAPICodePack.Taskbar;
</pre>
<p>to your using statements. When the clock starts running I create the progress bar in the taskbar with:</p>
<pre name="code" class="c#">
// Initialize progress bar
if(TaskbarManager.IsPlatformSupported)
{
	TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.Normal);
	TaskbarManager.Instance.SetProgressValue(0, (int)this.totalTime.TotalSeconds, this.Handle);
}
</pre>
<p>to stop the progress bar:</p>
<pre name="code" class="c#">
// Stop progress bar
if(TaskbarManager.IsPlatformSupported)
	TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.NoProgress);
</pre>
<p>and finally to update the progress bar on each tick:</p>
<pre name="code" class="c#">
// Update progress bar
if(TaskbarManager.IsPlatformSupported)
	TaskbarManager.Instance.SetProgressValue((int)this.totalTime.TotalSeconds - (int)this.time.TotalSeconds, (int)this.totalTime.TotalSeconds, this.Handle);
</pre>
<p><a href="http://zacharysnow.net/files/TimerWin7Taskbar.zip">Download Binary</a><br />
<a href="http://zacharysnow.net/files/TimerWin7TaskbarSrc.zip">Download Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://zacharysnow.net/2010/06/01/progress-bars-in-windows-7-taskbars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

