<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Arun's</title>
	<atom:link href="http://arunkg.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://arunkg.wordpress.com</link>
	<description>Just another Wordpress.com weblog</description>
	<lastBuildDate>Sun, 30 Jul 2006 09:29:52 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='arunkg.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/8d7db6b84e72f5a91b4a341381e628ae?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Arun's</title>
		<link>http://arunkg.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://arunkg.wordpress.com/osd.xml" title="Arun&#8217;s" />
		<item>
		<title>Resizing the Bitmap according to ButtonSize.</title>
		<link>http://arunkg.wordpress.com/2006/07/30/resizing-the-bitmap-according-to-buttonsize/</link>
		<comments>http://arunkg.wordpress.com/2006/07/30/resizing-the-bitmap-according-to-buttonsize/#comments</comments>
		<pubDate>Sun, 30 Jul 2006 05:49:34 +0000</pubDate>
		<dc:creator>arunkg</dc:creator>
				<category><![CDATA[Blogroll]]></category>

		<guid isPermaLink="false">https://arunkg.wordpress.com/2006/07/30/resizing-the-bitmap-according-to-buttonsize/</guid>
		<description><![CDATA[Dynamically changes the bitmap to fit the button size, so you can easily change the button size the bitmap will fit button accordingly. For this purpose you must replaces the class CBitmapButton with CResizeBitmapButton, which is an override of the class of CBitmapButton and modify the declaration of the CBitmapButton member variable from CResizeBitmapButton.Override the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunkg.wordpress.com&blog=329569&post=3&subd=arunkg&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Dynamically changes the bitmap to fit the button size, so you can easily change the button size the bitmap will fit button accordingly. For this purpose you must replaces the class CBitmapButton with CResizeBitmapButton, which is an override of the class of CBitmapButton and modify the declaration of the CBitmapButton member variable from CResizeBitmapButton.Override the Autoload and DrawItem<font size="3" face="Times New Roman"> </font>member functions of CBitmapButton (CBitmapButton<font size="3" face="Times New Roman"> from Winbtn.cpp in the MFC Src directory and make these changes)</font>. Change the Autoload function by commenting the “SizeToContent();” and in DrawItem replace the code<code></code></p>
<pre><font size="2">          </font></pre>
<pre><font size="2"> pDC-&gt;BitBlt( rect.left, rect.top, rect.Width(), rect.Height(),</font></pre>
<pre><font size="2">              &amp;memDC, 0, 0, SRCCOPY );</font></pre>
<pre><font size="2"> </font></pre>
<pre><font size="2">By adding the lines</font></pre>
<pre><font size="2">BITMAP bits;</font></pre>
<pre><font size="2">  pBitmap-&gt;GetObject( sizeof(BITMAP),&amp;bits );</font></pre>
<pre><font size="2">  pDC-&gt;StretchBlt( rect.left,rect.top,rect.Width(),rect.Height(),</font></pre>
<pre><font size="2">                 &amp;memDC,0,0,bits.bmWidth, bits.bmHeight, SRCCOPY ); </font><font size="2"> </font></pre>
<p>The function “StretchBlt” determine bitmaps size for the new button size</p>
<p>Rgds</p>
<p>ArunKG</p>
<p>&#8220;Happy people plan actions,they don&#8217;t plan results&#8221;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/arunkg.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/arunkg.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arunkg.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arunkg.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arunkg.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arunkg.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arunkg.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arunkg.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arunkg.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arunkg.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arunkg.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arunkg.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunkg.wordpress.com&blog=329569&post=3&subd=arunkg&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://arunkg.wordpress.com/2006/07/30/resizing-the-bitmap-according-to-buttonsize/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ab42d5db886af20fc6bc054ab6871873?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">arunkg</media:title>
		</media:content>
	</item>
	</channel>
</rss>