﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" 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/"><channel><title>C++博客-《深入解析ATL》第二版中文版上市-随笔分类-Others</title><link>http://www.cppblog.com/TechLab/category/169.html</link><description>有问题请到CSDN-&gt;VC/MFC讨论</description><language>zh-cn</language><lastBuildDate>Tue, 20 May 2008 15:08:17 GMT</lastBuildDate><pubDate>Tue, 20 May 2008 15:08:17 GMT</pubDate><ttl>60</ttl><item><title>深入解析ATL(第二版ATL8.0)(1.11-1.13节)</title><link>http://www.cppblog.com/TechLab/archive/2006/09/18/12674.html</link><dc:creator>TechLab</dc:creator><author>TechLab</author><pubDate>Mon, 18 Sep 2006 04:17:00 GMT</pubDate><guid>http://www.cppblog.com/TechLab/archive/2006/09/18/12674.html</guid><wfw:comment>http://www.cppblog.com/TechLab/comments/12674.html</wfw:comment><comments>http://www.cppblog.com/TechLab/archive/2006/09/18/12674.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/TechLab/comments/commentRss/12674.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/TechLab/services/trackbacks/12674.html</trackback:ping><description><![CDATA[深入解析ATL（第二版ATL8.0），文章在这里：<a href="/TechLab/articles/11761.html"><br /></a><a href="/TechLab/articles/12671.html">http://www.cppblog.com/TechLab/articles/12671.html</a><img src ="http://www.cppblog.com/TechLab/aggbug/12674.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/TechLab/" target="_blank">TechLab</a> 2006-09-18 12:17 <a href="http://www.cppblog.com/TechLab/archive/2006/09/18/12674.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>深入解析ATL(第二版ATL8.0)(1.8-1.10节)</title><link>http://www.cppblog.com/TechLab/archive/2006/09/08/12173.html</link><dc:creator>TechLab</dc:creator><author>TechLab</author><pubDate>Fri, 08 Sep 2006 08:56:00 GMT</pubDate><guid>http://www.cppblog.com/TechLab/archive/2006/09/08/12173.html</guid><wfw:comment>http://www.cppblog.com/TechLab/comments/12173.html</wfw:comment><comments>http://www.cppblog.com/TechLab/archive/2006/09/08/12173.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/TechLab/comments/commentRss/12173.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/TechLab/services/trackbacks/12173.html</trackback:ping><description><![CDATA[深入解析ATL（第二版ATL8.0），文章在这里：<a href="/TechLab/articles/11761.html"><br /></a><a href="/TechLab/articles/12172.html">http://www.cppblog.com/TechLab/articles/12172.html</a><img src ="http://www.cppblog.com/TechLab/aggbug/12173.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/TechLab/" target="_blank">TechLab</a> 2006-09-08 16:56 <a href="http://www.cppblog.com/TechLab/archive/2006/09/08/12173.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>深入解析ATL(第二版ATL8.0)(1.1-1.3节)</title><link>http://www.cppblog.com/TechLab/archive/2006/08/22/11564.html</link><dc:creator>TechLab</dc:creator><author>TechLab</author><pubDate>Tue, 22 Aug 2006 03:44:00 GMT</pubDate><guid>http://www.cppblog.com/TechLab/archive/2006/08/22/11564.html</guid><wfw:comment>http://www.cppblog.com/TechLab/comments/11564.html</wfw:comment><comments>http://www.cppblog.com/TechLab/archive/2006/08/22/11564.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/TechLab/comments/commentRss/11564.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/TechLab/services/trackbacks/11564.html</trackback:ping><description><![CDATA[深入解析ATL（第二版ATL8.0），文章在这里：<a href="/TechLab/articles/11561.html"><br />http://www.cppblog.com/TechLab/articles/11561.html</a><img src ="http://www.cppblog.com/TechLab/aggbug/11564.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/TechLab/" target="_blank">TechLab</a> 2006-08-22 11:44 <a href="http://www.cppblog.com/TechLab/archive/2006/08/22/11564.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>CListCtrl疑问</title><link>http://www.cppblog.com/TechLab/archive/2006/03/08/3899.html</link><dc:creator>TechLab</dc:creator><author>TechLab</author><pubDate>Wed, 08 Mar 2006 07:45:00 GMT</pubDate><guid>http://www.cppblog.com/TechLab/archive/2006/03/08/3899.html</guid><wfw:comment>http://www.cppblog.com/TechLab/comments/3899.html</wfw:comment><comments>http://www.cppblog.com/TechLab/archive/2006/03/08/3899.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/TechLab/comments/commentRss/3899.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/TechLab/services/trackbacks/3899.html</trackback:ping><description><![CDATA[<P>&nbsp;&nbsp;&nbsp;CListCtrl通过InsertItem插入一行，或者直接用SendMessag(m_hWnd,LVM_INSERTITEM,0,...);在日文的98操作系统下会直接引起系统崩溃，同样的代码在中文98和英文98都没有问题。郁闷了半天发现是CListCtrl的LVS_OWNERDATA的原因，如果去掉这个风格，程序运行正常，但是程序中使用了Virtual List，如果去掉LVS_OWNERDATA则效率上就没有提高了。为了让程序通过，不得已暂时先不用Virtual List。现在还不确定是否为操作系统坏死。</P><img src ="http://www.cppblog.com/TechLab/aggbug/3899.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/TechLab/" target="_blank">TechLab</a> 2006-03-08 15:45 <a href="http://www.cppblog.com/TechLab/archive/2006/03/08/3899.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>程序模拟实现显示桌面的功能</title><link>http://www.cppblog.com/TechLab/archive/2005/12/30/2270.html</link><dc:creator>TechLab</dc:creator><author>TechLab</author><pubDate>Fri, 30 Dec 2005 04:03:00 GMT</pubDate><guid>http://www.cppblog.com/TechLab/archive/2005/12/30/2270.html</guid><wfw:comment>http://www.cppblog.com/TechLab/comments/2270.html</wfw:comment><comments>http://www.cppblog.com/TechLab/archive/2005/12/30/2270.html#Feedback</comments><slash:comments>8</slash:comments><wfw:commentRss>http://www.cppblog.com/TechLab/comments/commentRss/2270.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/TechLab/services/trackbacks/2270.html</trackback:ping><description><![CDATA[#include&nbsp; &lt;windows.h&gt;&nbsp; <BR>#include&nbsp; &lt;shldisp.h&gt;&nbsp;&nbsp;<BR>int&nbsp; main&nbsp; ()&nbsp;&nbsp;<BR>{&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CoInitialize&nbsp; (0);&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IShellDispatch4&nbsp; *pdisp&nbsp; =&nbsp; NULL;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CoCreateInstance(CLSID_Shell,&nbsp; NULL,&nbsp;CLSCTX_ALL,&nbsp;__uuidof&nbsp;(IShellDispatch4),&nbsp;(void**)&amp;pdisp);&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pdisp-&gt;ToggleDesktop&nbsp; ();&nbsp; //这句是用来切换桌面的&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pdisp-&gt;Release();&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CoUninitialize();&nbsp; <BR>};<BR>注意这个 IShellDispatch4接口只有WINDOWS XP以上的操作系统才支持。要求<SPAN class=clsFmtDLL>shell32.dll 5.0及以上版本</SPAN><img src ="http://www.cppblog.com/TechLab/aggbug/2270.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/TechLab/" target="_blank">TechLab</a> 2005-12-30 12:03 <a href="http://www.cppblog.com/TechLab/archive/2005/12/30/2270.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>获取Windows应用程序列表</title><link>http://www.cppblog.com/TechLab/archive/2005/09/27/452.html</link><dc:creator>TechLab</dc:creator><author>TechLab</author><pubDate>Tue, 27 Sep 2005 00:36:00 GMT</pubDate><guid>http://www.cppblog.com/TechLab/archive/2005/09/27/452.html</guid><wfw:comment>http://www.cppblog.com/TechLab/comments/452.html</wfw:comment><comments>http://www.cppblog.com/TechLab/archive/2005/09/27/452.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/TechLab/comments/commentRss/452.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/TechLab/services/trackbacks/452.html</trackback:ping><description><![CDATA[GetWindow函数的用法有很多，通过传递不同的窗口参数，可以返回不同的窗口列表，传递GW_HWNDFIRST可以获得窗口Z-Order的所有WINDOWS。下面的函数把所有的Z-Order窗口名称添加到一个CListBox中：<BR>//获取任务列表且添加到列表框中<BR>BOOL GetAppList(CListBox &LstBox)<BR>{<BR>        CString strCaption;<BR>        LstBox.ResetContent();<BR>        ASSERT_VALID(AfxGetMainWnd());<BR>        CWnd *pWnd=AfxGetMainWnd()->GetWindow(<FONT color=#0000ff>GW_HWNDFIRST</FONT>);<BR>        if(pWnd==NULL) <BR>               return FALSE;<BR>        while(pWnd)<BR>        {<BR>               if(pWnd->IsWindowVisible() && pWnd->GetWindowTextLength() && !pWnd->GetOwner())<BR>              {<BR>                      pWnd->GetWindowText(strCaption);<BR>                      LstBox.AddString(strCaption);<BR>              }<BR>               pWnd=pWnd->GetWindow(<FONT color=#0000ff>GW_HWNDNEXT</FONT>);<BR>        }<BR>        return TRUE;<BR>}<img src ="http://www.cppblog.com/TechLab/aggbug/452.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/TechLab/" target="_blank">TechLab</a> 2005-09-27 08:36 <a href="http://www.cppblog.com/TechLab/archive/2005/09/27/452.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>