<?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>Reflections of my thoughts.... &#187; Visual Studio 2010</title>
	<atom:link href="http://codereflect.com/category/visual-studio-2010/feed/" rel="self" type="application/rss+xml" />
	<link>http://codereflect.com</link>
	<description>On Windows Programming, Technical Tips etc...</description>
	<lastBuildDate>Fri, 05 Mar 2010 04:31:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='codereflect.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>How to remove the Document name from the SDI/MDI Window titlebar?</title>
		<link>http://codereflect.com/2010/03/05/how-to-remove-the-document-name-from-the-sdimdi-window-titlebar/</link>
		<comments>http://codereflect.com/2010/03/05/how-to-remove-the-document-name-from-the-sdimdi-window-titlebar/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 04:27:44 +0000</pubDate>
		<dc:creator>Sarath</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[MFC]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Visual C++]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[MDI]]></category>
		<category><![CDATA[SDI]]></category>

		<guid isPermaLink="false">http://codereflect.com/2010/03/05/how-to-remove-the-document-name-from-the-sdimdi-window-titlebar/</guid>
		<description><![CDATA[
			
				
			
		
When you create a simple SDI Application, you can see that the Title of the Window is displayed as “Document Name – Application name” like you’re seeing below.

How we can remove this? It’s simple, just remove the FWS_ADDTOTITLE style from the frame window. You’ve to speicify this before the window being created. You can write <a href="http://codereflect.com/2010/03/05/how-to-remove-the-document-name-from-the-sdimdi-window-titlebar/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcodereflect.com%2F2010%2F03%2F05%2Fhow-to-remove-the-document-name-from-the-sdimdi-window-titlebar%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcodereflect.com%2F2010%2F03%2F05%2Fhow-to-remove-the-document-name-from-the-sdimdi-window-titlebar%2F&amp;source=sarat&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>When you create a simple SDI Application, you can see that the Title of the Window is displayed as “Document Name – Application name” like you’re seeing below.</p>
<p><img style="display: inline; border: 0px;" title="image" src="http://codereflect.com/wp-content/uploads/2010/03/image.png" border="0" alt="image" width="293" height="192" /></p>
<p>How we can remove this? It’s simple, just remove the FWS_ADDTOTITLE style from the frame window. You’ve to speicify this before the window being created. You can write the code in PreCreateWindow function.</p>
<p>See the snippet below</p>
<pre class="brush: cpp;">
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT&amp; cs)
 {
 	cs.style &amp;= ~ FWS_ADDTOTITLE;	// Remove the style
 	if( !CFrameWndEx::PreCreateWindow(cs) )
 		return FALSE;
 	return TRUE;
}
</pre>
<p>After that you can see the Window title like this!</p>
<p><img style="display: inline; border: 0px;" title="image" src="http://codereflect.com/wp-content/uploads/2010/03/image1.png" border="0" alt="image" width="233" height="159" /></p>
]]></content:encoded>
			<wfw:commentRss>http://codereflect.com/2010/03/05/how-to-remove-the-document-name-from-the-sdimdi-window-titlebar/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 mockup tools support for dialog editor</title>
		<link>http://codereflect.com/2010/02/27/visual-studio-2010-mockup-tools-support-for-dialog-editor/</link>
		<comments>http://codereflect.com/2010/02/27/visual-studio-2010-mockup-tools-support-for-dialog-editor/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 23:00:00 +0000</pubDate>
		<dc:creator>Sarath</dc:creator>
				<category><![CDATA[Visual C++]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[UI Design]]></category>

		<guid isPermaLink="false">http://codereflect.com/2010/02/22/visual-studio-2010-mockup-tools-support-for-dialog-editor/</guid>
		<description><![CDATA[
			
				
			
		
 Visual Studio 2010 has an excellent facility in the dialog editor to design the dialog with a mockup image. The resource editor represents the dialog and controls in DLUs(dialog units) and probably it’s hard to design with “pin-pixel” perfection. In the professional software development, the UIs are not really designed by programmers. It’s the <a href="http://codereflect.com/2010/02/27/visual-studio-2010-mockup-tools-support-for-dialog-editor/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcodereflect.com%2F2010%2F02%2F27%2Fvisual-studio-2010-mockup-tools-support-for-dialog-editor%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcodereflect.com%2F2010%2F02%2F27%2Fvisual-studio-2010-mockup-tools-support-for-dialog-editor%2F&amp;source=sarat&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://codereflect.com/wp-content/uploads/2010/02/image1.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="Image (C) Microsoft.com" border="0" alt="Image (C) Microsoft.com" align="left" src="http://codereflect.com/wp-content/uploads/2010/02/image_thumb1.png" width="242" height="166" /></a> Visual Studio 2010 has an excellent facility in the dialog editor to design the dialog with a mockup image. The resource editor represents the dialog and controls in DLUs(dialog units) and probably it’s hard to design with “pin-pixel” perfection. In the professional software development, the UIs are not really designed by programmers. It’s the task of UX person. Probably they will come up with a mock-up image designed some UI design tools (like Visio, Adobe Flash, Photoshop etc…) and it’s programmer’s responsibility to implement them in the actual software. I’ve used “SetWindowPos” and “MoveWindow” APIs in my dialog implementation code to layout the controls to match with in the exact specification. </p>
<p>Take an example. If you’re developing an application which showing the news feed from facebook and your application wants to have the same login controls and layout for making it more compatible with facebook. How we can do that? Here I am taking login screen of facebook. ( the home page design is © to facebook.com and I using this only for the demo purpose). Also I’ve not seen any application helps to sign up with facebook. I am just trying to make my mockup image a bit big.</p>
<p>Consider the following image as the mockup image.</p>
<p><a href="http://codereflect.com/wp-content/uploads/2010/02/Facebook1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Facebook" border="0" alt="Facebook" src="http://codereflect.com/wp-content/uploads/2010/02/Facebook_thumb1.png" width="429" height="423" /></a> </p>
<p>Now lets load this in the resource editor. You can see the mockup controls at the bottom of the resource editor by default. </p>
<ul>
<li>Enable the mockup image by clicking the checkbox </li>
<li>Load mockup image by clicking browse button </li>
<li>Change the transparency suitable for you. Also you can change the X,Y offset of the image to be appeared behind dialog. </li>
<li>You can also show/hide the image using the check box left to “Mockup Image”. </li>
</ul>
<p><a href="http://codereflect.com/wp-content/uploads/2010/02/mockuploaded.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="mockuploaded" border="0" alt="mockuploaded" src="http://codereflect.com/wp-content/uploads/2010/02/mockuploaded_thumb.png" width="607" height="654" /></a> </p>
<p>Preview the image (Ctrl+T) and see how it appears! </p>
<p><strong>More Info:</strong></p>
<ul>
<li><a href="http://www.microsoft.com/visualstudio/en-us/products/2010/default.mspx" target="_blank">Visual Studio 2010 Home</a> </li>
<li><a href="http://blogs.msdn.com/saveenr/archive/2010/01/25/ui-prototyping-mockup-tools-you-should-be-using.aspx" target="_blank">Blog: UI Prototype Tools you should be using</a> </li>
<li><a href="http://blogs.msdn.com/vcblog/archive/2010/01/19/dialog-editor-improvements-in-visual-studio-2010.aspx" target="_blank">Blog: Dialog Editor Improvements in Visual Studio 2010</a> </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://codereflect.com/2010/02/27/visual-studio-2010-mockup-tools-support-for-dialog-editor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
