<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/Passants" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/Passants" type="application/rss+xml"></fs:self_link><lastBuildDate>Fri, 13 Feb 2009 12:25:00 GMT</lastBuildDate><title>ShITer</title><description>a Shanghai ITer —— 涛的IT人生路</description><link>http://blog.csdn.net/Passants/</link><item><title>创建背景透明的Static text</title><link>http://blog.csdn.net/Passants/archive/2009/02/13/3886622.aspx</link><wfw:comment>http://blog.csdn.net/Passants/comments/3886622.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/Passants/comments/commentRss/3886622.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3886622</trackback:ping><description>&lt;br /&gt;重写OnCtlColor函数：&lt;br /&gt;&lt;br /&gt;HBRUSH CMyDialog::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
    HBRUSH hbr;

    if( nCtlColor == MY_STATIC )
    {
        pDC-&gt;SetBkMode(TRANSPARENT);
        hbr = (HBRUSH)GetStockObject( NULL_BRUSH );
    }
    else
    {
       hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
    }

    return hbr;
}
 &lt;br /&gt;&lt;br /&gt;使用这个方法要注意，如果用SetWindowText，SetDlgItemText之类的函数去修改显示的文字，会发生文字重叠。解决的方法就是将该块区域Invalidate一下，使其重新绘制。&lt;img src =&quot;http://blog.csdn.net/Passants/aggbug/3886622.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 13 Feb 2009 20:25:00 +0800</pubDate><author>涛</author><comments>http://blog.csdn.net/Passants/archive/2009/02/13/3886622.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Passants/archive/2009/02/13/3886622.aspx</guid><dc:creator>涛</dc:creator></item><item><title>在透明的Static控件上画透明的图标（icon）、图片</title><link>http://blog.csdn.net/Passants/archive/2009/02/09/3871162.aspx</link><wfw:comment>http://blog.csdn.net/Passants/comments/3871162.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/Passants/comments/commentRss/3871162.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3871162</trackback:ping><description>&lt;br /&gt;经常有这样的需求，在对话框的某个位置显示一个背景透明的图标。但是往往图片控件（Picture Control）设置成了透明的，但图标的背景却变成了不透明的。下面这个类可以用来满足显示透明图标的需求。CTransparentImage继承自CStatic。&lt;br /&gt;&lt;br /&gt;//.h
class CTransparentImage : public CStatic
{
public:
   CTransparentImage() : m_bLoaded(false), m_width(0), m_height(0) {};
   virtual ~CTransparentImage() {};
   void loadImage();
   void SetIcon(HICON hIcon, int width, int height);
protected:
	//{{AFX_MSG(CTransparentImage)
	afx_msg void OnPaint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
&lt;img src =&quot;http://blog.csdn.net/Passants/aggbug/3871162.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Tue, 10 Feb 2009 00:41:00 +0800</pubDate><author>涛</author><comments>http://blog.csdn.net/Passants/archive/2009/02/09/3871162.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Passants/archive/2009/02/09/3871162.aspx</guid><dc:creator>涛</dc:creator></item><item><title>给CTreeCtrl\CListCtrl\CListBox的Item添加tooltip</title><link>http://blog.csdn.net/Passants/archive/2009/02/02/3858541.aspx</link><wfw:comment>http://blog.csdn.net/Passants/comments/3858541.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/Passants/comments/commentRss/3858541.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3858541</trackback:ping><description>&lt;br /&gt;1. 从CTreeCtrl派生自己的类，如CMyTreeCtrl。打开Tooltip功能：&lt;br /&gt;void CMyTreeCtrl::PreSubclassWindow() 
{
 // TODO: Add your specialized code here and/or call the base class
 
 CTreeCtrl::PreSubclassWindow();
 EnableToolTips(TRUE);
}&lt;br /&gt;&lt;br /&gt;2. 重写OnToolHitTest&lt;br /&gt;&lt;br /&gt;int CMyTreeCtrl::OnToolHitTest(CPoint point, TOOLINFO * pTI) const
{
 RECT rect;

 UINT nFlags;
 HTREEITEM hitem = HitTest( point, &amp;nFlags );
 if( nFlags &amp; TVHT_ONITEMLABEL  )
 {
  GetItemRect( hitem, &amp;rect, TRUE );
 &lt;img src =&quot;http://blog.csdn.net/Passants/aggbug/3858541.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Mon, 02 Feb 2009 23:34:00 +0800</pubDate><author>涛</author><comments>http://blog.csdn.net/Passants/archive/2009/02/02/3858541.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Passants/archive/2009/02/02/3858541.aspx</guid><dc:creator>涛</dc:creator></item><item><title>解决一个VC程序内存泄漏的问题</title><link>http://blog.csdn.net/Passants/archive/2005/05/17/376006.aspx</link><wfw:comment>http://blog.csdn.net/Passants/comments/376006.aspx</wfw:comment><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/Passants/comments/commentRss/376006.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=376006</trackback:ping><description>有关CString 对象未被正确释放的问题。&lt;img src =&quot;http://blog.csdn.net/Passants/aggbug/376006.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Tue, 17 May 2005 20:43:00 +0800</pubDate><author>涛</author><comments>http://blog.csdn.net/Passants/archive/2005/05/17/376006.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Passants/archive/2005/05/17/376006.aspx</guid><dc:creator>涛</dc:creator></item><item><title>一个电面打回原形</title><link>http://blog.csdn.net/Passants/archive/2005/03/24/328676.aspx</link><wfw:comment>http://blog.csdn.net/Passants/comments/328676.aspx</wfw:comment><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/Passants/comments/commentRss/328676.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=328676</trackback:ping><description>弱啊弱啊……&lt;img src =&quot;http://blog.csdn.net/Passants/aggbug/328676.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 24 Mar 2005 20:31:00 +0800</pubDate><author>涛</author><comments>http://blog.csdn.net/Passants/archive/2005/03/24/328676.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Passants/archive/2005/03/24/328676.aspx</guid><dc:creator>涛</dc:creator></item><item><title>1K的游戏玩过吗</title><link>http://blog.csdn.net/Passants/archive/2005/03/04/310735.aspx</link><wfw:comment>http://blog.csdn.net/Passants/comments/310735.aspx</wfw:comment><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/Passants/comments/commentRss/310735.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=310735</trackback:ping><description>用汇编写的小游戏，只有1K左右大小……&lt;img src =&quot;http://blog.csdn.net/Passants/aggbug/310735.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 04 Mar 2005 22:55:00 +0800</pubDate><author>涛</author><comments>http://blog.csdn.net/Passants/archive/2005/03/04/310735.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Passants/archive/2005/03/04/310735.aspx</guid><dc:creator>涛</dc:creator></item><item><title>基于MFC对话框的OpenGL类</title><link>http://blog.csdn.net/Passants/archive/2005/03/03/309772.aspx</link><wfw:comment>http://blog.csdn.net/Passants/comments/309772.aspx</wfw:comment><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/Passants/comments/commentRss/309772.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=309772</trackback:ping><description>今天写了个基于MFC对话框的OpenGL类，可以在对话框程序中使用OpenGL了，并且提供了全屏与非全屏转换的两个函数，很容易使用，速度快。&lt;img src =&quot;http://blog.csdn.net/Passants/aggbug/309772.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 04 Mar 2005 03:32:00 +0800</pubDate><author>涛</author><comments>http://blog.csdn.net/Passants/archive/2005/03/03/309772.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Passants/archive/2005/03/03/309772.aspx</guid><dc:creator>涛</dc:creator></item><item><title>ＦＲＩＥＮＤＳ演员详细介绍</title><link>http://blog.csdn.net/Passants/archive/2005/01/30/274091.aspx</link><wfw:comment>http://blog.csdn.net/Passants/comments/274091.aspx</wfw:comment><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/Passants/comments/commentRss/274091.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=274091</trackback:ping><description>ＦＲＩＥＮＤＳ演员详细介绍&lt;img src =&quot;http://blog.csdn.net/Passants/aggbug/274091.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Sun, 30 Jan 2005 23:51:00 +0800</pubDate><author>涛</author><comments>http://blog.csdn.net/Passants/archive/2005/01/30/274091.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Passants/archive/2005/01/30/274091.aspx</guid><dc:creator>涛</dc:creator></item><item><title>用servlet实现在图片上动态加字</title><link>http://blog.csdn.net/Passants/archive/2005/01/26/268850.aspx</link><wfw:comment>http://blog.csdn.net/Passants/comments/268850.aspx</wfw:comment><slash:comments>3</slash:comments><wfw:commentRss>http://blog.csdn.net/Passants/comments/commentRss/268850.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=268850</trackback:ping><description>用servlet实现一个最简单的在图片上动态加字的程序&lt;img src =&quot;http://blog.csdn.net/Passants/aggbug/268850.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Wed, 26 Jan 2005 22:40:00 +0800</pubDate><author>涛</author><comments>http://blog.csdn.net/Passants/archive/2005/01/26/268850.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Passants/archive/2005/01/26/268850.aspx</guid><dc:creator>涛</dc:creator></item><item><title>读《同济大学软件学院万院长谈择业》</title><link>http://blog.csdn.net/Passants/archive/2005/01/24/265973.aspx</link><wfw:comment>http://blog.csdn.net/Passants/comments/265973.aspx</wfw:comment><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/Passants/comments/commentRss/265973.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=265973</trackback:ping><description>感觉万院长的谆谆教诲使我受益匪浅&lt;img src =&quot;http://blog.csdn.net/Passants/aggbug/265973.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Mon, 24 Jan 2005 22:10:00 +0800</pubDate><author>涛</author><comments>http://blog.csdn.net/Passants/archive/2005/01/24/265973.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Passants/archive/2005/01/24/265973.aspx</guid><dc:creator>涛</dc:creator></item></channel></rss>