<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - The Sandbox - Clock app for Title bar</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - The Sandbox - Clock app for Title bar</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Mon, 20 May 2013 19:31:07 GMT</pubDate>
	<lastBuildDate>Mon, 20 May 2013 19:31:07 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>19</c9:totalResults>
	<c9:pageCount>-19</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>The Sandbox - Clock app for Title bar</title>
		<description><![CDATA[<p>This is a clock that auto-fits into the title bar - saves space in the system tray<br>
Requirements:<br>
Windows 2000 or later (for transparency)<br>
<br>
EDIT:<br>
v2 - allows a registry setting TimeFormat (string) which overrides the settings pulled from the Regional control panel.&nbsp; Uses wildcards like
<a target="_blank" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_strftime.2c_.wcsftime.asp">
these</a><br>
For example, %#c shows the date (in long format) as well as the time.&nbsp; AM/PM can be added via %#c %p which yields -- to use the date in the documentation --<br>
Tuesday, March 14, 1995, 12:41:29 PM<br>
<br>
v2.1 - fixed bug where if you dragged it close to the left edge of the screen, the next launch would force it to be at least a few hundred pixels away from the left edge<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/48467#48467</link>
		<pubDate>Sun, 20 Mar 2005 04:26:39 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/48467#48467</guid>
		<dc:creator>Maurits</dc:creator>
		<slash:comments>19</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Maurits/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - Clock app for Title bar</title>
		<description><![CDATA[<p>This application failed to start because MFC70.DLL was not found.<br>
<br>
I run on Windows 2003, with tons of programs installed like Office 2003, Visual Studio.NET 2003, etc...<br>
<br>
Seems like MFC70.DLL is a rare component.<br>
<br>
You see, this should be re-written in .NET <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-5.gif' alt='Wink' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/fb06895b57c14d62b8549dea0102ec7a#fb06895b57c14d62b8549dea0102ec7a</link>
		<pubDate>Sun, 20 Mar 2005 12:41:30 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/fb06895b57c14d62b8549dea0102ec7a#fb06895b57c14d62b8549dea0102ec7a</guid>
		<dc:creator>dotnetjunkie</dc:creator>
		<slash:comments>19</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/dotnetjunkie/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - Clock app for Title bar</title>
		<description><![CDATA[<p>I built an MFC6 version in the MFC6 subfolder - try that one<br>
</p>
<p><br>
EDIT: isn't mfc70.dll included in the .NET 1.1 Framework?<br>
</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/4d36e5a1a051495aa4609dea0102eca2#4d36e5a1a051495aa4609dea0102eca2</link>
		<pubDate>Mon, 21 Mar 2005 17:40:38 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/4d36e5a1a051495aa4609dea0102eca2#4d36e5a1a051495aa4609dea0102eca2</guid>
		<dc:creator>Maurits</dc:creator>
		<slash:comments>19</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Maurits/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - Clock app for Title bar</title>
		<description><![CDATA[<p>I suppose I could just include <b>only</b> the MFC6 build... is there a way to link to the latest MFC available on the executing system?&nbsp; The machine I built this on had MFC7 installed.<br>
<br>
I do need window transparency so the app does require W2K or later, but I don't use any MFC7 stuff.<br>
<br>
Or am I blowing the linking thing completely?<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/1a25df85727a443896c39dea0102eccc#1a25df85727a443896c39dea0102eccc</link>
		<pubDate>Tue, 22 Mar 2005 01:04:00 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/1a25df85727a443896c39dea0102eccc#1a25df85727a443896c39dea0102eccc</guid>
		<dc:creator>Maurits</dc:creator>
		<slash:comments>19</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Maurits/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - Clock app for Title bar</title>
		<description><![CDATA[<p>Is this supposed to actually hook into the application so that it displays to the left of the control-buttons or is it just to overlay on the screen at the position of the control buttons when it's maximized?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/0a42691803fc47aeb8489dea0102ed0d#0a42691803fc47aeb8489dea0102ed0d</link>
		<pubDate>Wed, 23 Mar 2005 18:26:55 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/0a42691803fc47aeb8489dea0102ed0d#0a42691803fc47aeb8489dea0102ed0d</guid>
		<dc:creator>Travis H</dc:creator>
		<slash:comments>19</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Travis H/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - Clock app for Title bar</title>
		<description><![CDATA[<p>It doesn't tie to the foreground application - just tacks on to the area of the workspace (screen minus Start Menu bar)<br>
<br>
You can drag it wherever you like though, and it will remember across launches<br>
<br>
It uses a default color/font from the Appearance settings - caption font<br>
<br>
I've noticed this is really ugly when the default caption font (white) is displayed against a desktop with the &quot;clouds&quot; image (when there are no windows maximized)<br>
<br>
So I put in a feature where you can pick whatever color you want - give the app the focus and hit the &quot;C&quot; key to pull up a color picker<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/11f91f92cb004fe686919dea0102ed37#11f91f92cb004fe686919dea0102ed37</link>
		<pubDate>Wed, 23 Mar 2005 18:30:12 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/11f91f92cb004fe686919dea0102ed37#11f91f92cb004fe686919dea0102ed37</guid>
		<dc:creator>Maurits</dc:creator>
		<slash:comments>19</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Maurits/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - Clock app for Title bar</title>
		<description><![CDATA[<p>Is there some way to add the date into this as well? I dont know enough C&#43;&#43; to add it. Just a thought.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/a6b20094fc45451fb15e9dea0102ed79#a6b20094fc45451fb15e9dea0102ed79</link>
		<pubDate>Thu, 24 Mar 2005 19:30:32 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/a6b20094fc45451fb15e9dea0102ed79#a6b20094fc45451fb15e9dea0102ed79</guid>
		<dc:creator>darklotus</dc:creator>
		<slash:comments>19</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/darklotus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - Clock app for Title bar</title>
		<description><![CDATA[<p>Good question.&nbsp; I pull the time/date format from the Regional Settings control panel, so mm/dd/yyyy vs. dd/mm/yyyy is not an issue... I could probably even have it display the month and day names in the language edition of the OS.&nbsp; It's probably a matter
 of mucking with a very specific area of the code that generates the time string.&nbsp; I'll look into it.<br>
<br>
The hard part gets to be setting preferences in an app with no user interface. <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /><br>
<br>
EDIT: and the size of the form will need to be expanded... not a big deal...<br>
EDIT2: maybe adding the date should be a ToolTip-style onhover kind of thing.&nbsp; No - on second thoughts that could get real annoying.<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/649f069e504640f3b1d39dea0102eda3#649f069e504640f3b1d39dea0102eda3</link>
		<pubDate>Thu, 24 Mar 2005 20:04:43 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/649f069e504640f3b1d39dea0102eda3#649f069e504640f3b1d39dea0102eda3</guid>
		<dc:creator>Maurits</dc:creator>
		<slash:comments>19</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Maurits/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - Clock app for Title bar</title>
		<description><![CDATA[<p>I dont know c&#43;&#43; well enough to write this nice application, i was able to get the date to display though. Most of my programming knowledge is vb6 and c# so the sytax may not look right , but it worked!<br>
<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/00ad68b83a22400e9abd9dea0102edcc#00ad68b83a22400e9abd9dea0102edcc</link>
		<pubDate>Fri, 25 Mar 2005 13:16:24 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/00ad68b83a22400e9abd9dea0102edcc#00ad68b83a22400e9abd9dea0102edcc</guid>
		<dc:creator>darklotus</dc:creator>
		<slash:comments>19</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/darklotus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - Clock app for Title bar</title>
		<description><![CDATA[<p>Very&nbsp; nice <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /><br>
EDIT: can you post the lines you changed?<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/97ef71c0b4c040e195659dea0102edf4#97ef71c0b4c040e195659dea0102edf4</link>
		<pubDate>Fri, 25 Mar 2005 16:04:59 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/97ef71c0b4c040e195659dea0102edf4#97ef71c0b4c040e195659dea0102edf4</guid>
		<dc:creator>Maurits</dc:creator>
		<slash:comments>19</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Maurits/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - Clock app for Title bar</title>
		<description><![CDATA[<p>File:<strong>Settings.h</strong>&nbsp; Line(s):<strong>16</strong><br>
</p>
<pre class="brush: cpp"><br>#define BARCLOCK_CX 128<br><br>to<br><br>#define BARCLOCK_CX 256<br></pre>
<p></p>
<p><br>
File:<strong>BarClockWnd.h</strong>&nbsp; Line(s):<strong>12</strong><br>
</p>
<pre class="brush: cpp"><br>CString m_time;<br><br>to<br><br>CString m_time;<br>CString m_date;<br></pre>
<p></p>
<p><br>
File:<strong>BarClockWnd.cpp</strong>&nbsp; Line(s):<strong>165</strong><br>
</p>
<pre class="brush: cpp"><br>m_time = COleDateTime::GetCurrentTime().Format(VAR_TIMEVALUEONLY);<br><br>to<br><br>m_time = COleDateTime::GetCurrentTime().Format(VAR_TIMEVALUEONLY);<br>m_date = COleDateTime::GetCurrentTime().Format(VAR_DATEVALUEONLY);<br></pre>
<p></p>
<p>File:<strong>BarClockWnd.cpp</strong>&nbsp; Line(s):<strong>176</strong><br>
</p>
<pre class="brush: cpp"><br>m_time,<br><br>to<br><br>m_time &#43; &quot;  &quot; &#43; m_date,<br></pre>
<br>
<br>
Its nothing major, just simple addition of some code thats already there, not too bad for someone who doesnt know c&#43;&#43;.
<br>
<p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/ef1b307db4cd4db2aa949dea0102ee22#ef1b307db4cd4db2aa949dea0102ee22</link>
		<pubDate>Fri, 25 Mar 2005 18:00:24 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/ef1b307db4cd4db2aa949dea0102ee22#ef1b307db4cd4db2aa949dea0102ee22</guid>
		<dc:creator>darklotus</dc:creator>
		<slash:comments>19</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/darklotus/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - Clock app for Title bar</title>
		<description><![CDATA[<p><blockquote>
<div>darklotus wrote:</div>
<div>Is there some way to add the date into this as well?</div>
</blockquote>
<br>
<br>
As of the latest version, set the following registry key to the format you want<br>
HKCU\Software\BarClock\TimeFormat<br>
<br>
%x %X will put the date first<br>
%X %x will put the time first<br>
<br>
You can get very specific using the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_strftime.2c_.wcsftime.asp">
strftime wildcards</a><br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/762431c9732146ccaf2d9dea0102ee4b#762431c9732146ccaf2d9dea0102ee4b</link>
		<pubDate>Tue, 29 Mar 2005 00:27:01 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/762431c9732146ccaf2d9dea0102ee4b#762431c9732146ccaf2d9dea0102ee4b</guid>
		<dc:creator>Maurits</dc:creator>
		<slash:comments>19</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Maurits/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - Clock app for Title bar</title>
		<description><![CDATA[<p>I tested it and it work fine.. the catch is that it doesn't work with all software, namely WMP 10. WMP 10 has the fourth button in addition to the 3 usual buttons (min, max/restore, close) it will be overlapped.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/de4b990faa38468f9ba29dea0102ee8d#de4b990faa38468f9ba29dea0102ee8d</link>
		<pubDate>Wed, 04 May 2005 13:07:03 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/de4b990faa38468f9ba29dea0102ee8d#de4b990faa38468f9ba29dea0102ee8d</guid>
		<dc:creator>zybler</dc:creator>
		<slash:comments>19</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/zybler/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - Clock app for Title bar</title>
		<description><![CDATA[<p>Thanks for the tip!&nbsp; I'm not sure what the fix is, but I'll think about it.<br>
<br>
I also thought of two more potential justifications for the app.<br>
<br>
<ul>
<li>Full-screen - if you're viewing something full-screen, and you want to know what time it is, you can check without taking your eyes off the screen.&nbsp; (Though some games may change the resolution on the fly, which might break the clock - perhaps I could listen
 for resolution-change-events and reposition accordingly.) </li><li>Auto-hide Task bar - if you like auto-hiding the task bar, but want to see the clock anyway, this app is for you.
</li></ul>
I was reading michkap's blog and noticed a &quot;regional settings change&quot; event - maybe I should capture that to allow re-reading of the system regional date/time format.<br>
<br>
LATER:<br>
OK, here's what I came up with for the three-vs.-four-button thing.<br>
<br>
I thought about resolving as WONTFIX because the user can just drag the clock wherever.&nbsp; But I felt guilty about it.<br>
<br>
Then I had an idea - add more commands!<br>
There's already a command to change the color - &quot;C&quot;<br>
I've been somewhat annoyed that there's no way to reset the position of the app to its initial default position (&quot;3&quot;-button position) - so I will add the following additional commands:<br>
&quot;3&quot; - reset clock to initial position, based on three buttons (minimize, restore/maximize, close)<br>
&quot;4&quot; - reset clock to a position based on FOUR buttons, as in WMP<br>
&quot;?&quot; - show list of commands... or maybe &quot;h&quot; for help... depends on how that SHIFT key interacts with regional keyboard settings...<br>
<br>
Commands may be entered by giving the app focus and typing that key.<br>
I'll update this project once this is implemented.<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/a2705569cfa4479fab8b9dea0102eeba#a2705569cfa4479fab8b9dea0102eeba</link>
		<pubDate>Fri, 06 May 2005 16:48:13 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/a2705569cfa4479fab8b9dea0102eeba#a2705569cfa4479fab8b9dea0102eeba</guid>
		<dc:creator>Maurits</dc:creator>
		<slash:comments>19</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Maurits/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - Clock app for Title bar</title>
		<description><![CDATA[<p>Now that I have two monitors I have to revisit this.&nbsp; It's not remembering its position (I have&nbsp;it on the non-primary monitor.)<br>
<br>
It's probably some sanity-checking code that didn't correctly consider the rights of the purportedly insane.<br>
<br>
EDIT: Yup, disabling the sanity checks in the code makes it work with multiple monitors.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/7bbb869c391a4462bc289dea0102eee3#7bbb869c391a4462bc289dea0102eee3</link>
		<pubDate>Wed, 12 Jul 2006 04:04:16 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/7bbb869c391a4462bc289dea0102eee3#7bbb869c391a4462bc289dea0102eee3</guid>
		<dc:creator>Matthew van Eerde</dc:creator>
		<slash:comments>19</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Matthew van Eerde/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - Clock app for Title bar</title>
		<description><![CDATA[<p><blockquote>
<div class="quoteAuthor">Maurits wrote:</div>
<div class="quoteBody"><img alt="This is a clock that auto-fits into the title bar - saves space in the system tray&lt;br&gt;Requirements:&lt;br&gt;
Windows 2000 or later (for transparency)&lt;br&gt;
&lt;br&gt;EDIT:&lt;br&gt;v2 - allows a registry setting TimeFormat (string) which
overrides the settings pulled from the Regional control panel.&nbsp;
Uses wildcards like &lt;a href=" src="/Photos/49864.jpg" border="0">these<br>
For example, %#c shows the date (in long format) as well as the time.&nbsp; AM/PM can be added via %#c %p which yields -- to use the date in the documentation --<br>
Tuesday, March 14, 1995, 12:41:29 PM<br>
<br>
v2.1 - fixed bug where if you dragged it close to the left edge of the screen, the next launch would force it to be at least a few hundred pixels away from the left edge<br>
&quot; /&gt;</div>
</blockquote>
<br>
<br>
i'm new here. how do you DL the darn clock?!<img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-8.gif' alt='Expressionless' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/18c2c30691c8459394629dea0102ef27#18c2c30691c8459394629dea0102ef27</link>
		<pubDate>Fri, 06 Jul 2007 23:29:29 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/18c2c30691c8459394629dea0102ef27#18c2c30691c8459394629dea0102ef27</guid>
		<dc:creator>poo</dc:creator>
		<slash:comments>19</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/poo/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - Clock app for Title bar</title>
		<description><![CDATA[<p><blockquote>
<div class="quoteAuthor">poo wrote:</div>
<div class="quoteBody">&#65279;
<blockquote>
<table class="quoteTable">
<tbody>
<tr>
<td valign="top" width="10"><img src="/Themes/AlmostGlass/images/icon-quote.gif"></td>
<td class="txt3"><strong>Maurits wrote:</strong>
<hr size="1">
<i><img alt="This is a clock that auto-fits into the title bar - saves space in the system tray&lt;br&gt;Requirements:&lt;br&gt;
Windows 2000 or later (for transparency)&lt;br&gt;
&lt;br&gt;EDIT:&lt;br&gt;v2 - allows a registry setting TimeFormat (string) which
overrides the settings pulled from the Regional control panel.&nbsp;
Uses wildcards like &lt;a href=" src="/Photos/49864.jpg" border="0">these<br>
For example, %#c shows the date (in long format) as well as the time.&nbsp; AM/PM can be added via %#c %p which yields -- to use the date in the documentation --<br>
Tuesday, March 14, 1995, 12:41:29 PM<br>
<br>
v2.1 - fixed bug where if you dragged it close to the left edge of the screen, the next launch would force it to be at least a few hundred pixels away from the left edge<br>
&quot; /&gt;</i></td>
</tr>
</tbody>
</table>
</blockquote>
<br>
<br>
i'm new here. how do you DL the darn clock?!<img src="/emoticons/emotion-8.gif" border="0"></div>
</blockquote>
<br>
<br>
Click the Save link at the bottom of the first&nbsp;post.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/f80f0dbc011b470cb74d9dea0102ef53#f80f0dbc011b470cb74d9dea0102ef53</link>
		<pubDate>Mon, 09 Jul 2007 22:07:16 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/f80f0dbc011b470cb74d9dea0102ef53#f80f0dbc011b470cb74d9dea0102ef53</guid>
		<dc:creator>JonathonW</dc:creator>
		<slash:comments>19</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/CannotResolveSymbol/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - Clock app for Title bar</title>
		<description><![CDATA[<p>Hi, I'm even newer here.&nbsp; I don't have a compiler for Windows.&nbsp; I can give the app focus and get the colour dialog, but haven't been able to add the date to the display or get a help screen.&nbsp; Is there a way I can do that, or are there detailed instructions
 somewhere for how to use regedit or something to display the date?&nbsp; (The computer I'm running the clock on is my employer's computer, so I really don't want to screw it up.)<br>
<br>
Thanks.<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/183d90c79c2d45cca15f9dea0102ef95#183d90c79c2d45cca15f9dea0102ef95</link>
		<pubDate>Fri, 14 Mar 2008 16:39:50 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/183d90c79c2d45cca15f9dea0102ef95#183d90c79c2d45cca15f9dea0102ef95</guid>
		<dc:creator>botnik</dc:creator>
		<slash:comments>19</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/botnik/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - Clock app for Title bar</title>
		<description><![CDATA[<p>There is no documentation for this. No help screen. Not in the actual version.
<br>
<br>
For the TimeFormat you have to create a REG_SZ under <br>
<br>
HKCU\Software\BarClock<br>
<br>
called TimeFormat&nbsp;with e.g.&nbsp;the value&nbsp;'%d. %m. %y&nbsp;&nbsp; %H:%M' (without the quotation marks) and you get the dateformat like &quot;26.07.08 18:05&quot;.
<br>
You can get the strftime-parameters e.g. from <br>
<br>
<a href="http://de2.php.net/manual/en/function.strftime.php">http://de2.php.net/manual/en/function.strftime.php</a><br>
<br>
There are as well 'Color' (REG_DWORD) e.g. 'ffffff' for white, Left (REG_DWORD) and Top ( REG_DWORD).<br>
<br>
If you cannot compile the BarClock, its a pity. Its&nbsp;more useful if you CAN compile it.<br>
You need Visual Studio 2003 or similar.<br>
<br>
If you add in BarClockWnd.cpp somewhere after &nbsp;after:<br>
<br>
<p><em>&nbsp;int color = a-&gt;GetProfileInt(<br>
&nbsp;&nbsp;&quot;&quot;,<br>
&nbsp;&nbsp;&quot;Color&quot;,<br>
&nbsp;&nbsp;BARCLOCK_COLOR_DEFAULT<br>
&nbsp;);</em></p>
<p><strong>&nbsp;// REG_SZ FontSize (default = 15)<br>
&nbsp;int fontsize = a-&gt;GetProfileInt(<br>
&nbsp;&nbsp;&quot;&quot;,<br>
&nbsp;&nbsp;&quot;FontSize&quot;,<br>
&nbsp;&nbsp;15 // default is 15<br>
&nbsp;);</strong></p>
<strong><em>and after</em></strong><br>
<p><em>lfCaptionFont = ncmNonClientMetrics.lfCaptionFont;</em><br>
</p>
<br>
<p><strong>lfCaptionFont.lfHeight = fontsize;</strong></p>
then you can use a REG_DWORD called FontSize, where you can determine the fontsize.<br>
<br>
And i changed the &quot;EasterEgg&quot; :<br>
<br>
<strong>&nbsp;if (nChar == VK_ESCAPE) // Easter egg<br>
// this serves as copyright - preserve this feature<br>
{ AfxMessageBox(BARCLOCK_EASTEREGGTEXT);<br>
}<br>
<br>
<br>
</strong>with:<br>
<br>
<strong><br>
&nbsp;&nbsp;if (nChar == VK_ESCAPE) // Exit<br>
&nbsp;{<br>
&nbsp;&nbsp;AfxGetMainWnd()-&gt;DestroyWindow();<br>
&nbsp;}<br>
</strong><br>
<br>
to get an exit possibility. Without this, no saving of color and so on in registry<br>
<br>
Regards, franc<br>
<br>
&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/d2d96aaf2080429582859dea0102efdc#d2d96aaf2080429582859dea0102efdc</link>
		<pubDate>Sat, 26 Jul 2008 17:00:14 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/Clock-app-for-Title-bar/d2d96aaf2080429582859dea0102efdc#d2d96aaf2080429582859dea0102efdc</guid>
		<dc:creator>francwalter</dc:creator>
		<slash:comments>19</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/francwalter/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>