﻿<?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++博客-古月西城-文章分类-MFC</title><link>http://www.cppblog.com/hdchneg/category/9892.html</link><description /><language>zh-cn</language><lastBuildDate>Wed, 18 Mar 2009 22:25:41 GMT</lastBuildDate><pubDate>Wed, 18 Mar 2009 22:25:41 GMT</pubDate><ttl>60</ttl><item><title>CListCtrl 使用技巧(2)</title><link>http://www.cppblog.com/hdchneg/articles/77098.html</link><dc:creator>古月西城</dc:creator><author>古月西城</author><pubDate>Wed, 18 Mar 2009 18:19:00 GMT</pubDate><guid>http://www.cppblog.com/hdchneg/articles/77098.html</guid><wfw:comment>http://www.cppblog.com/hdchneg/comments/77098.html</wfw:comment><comments>http://www.cppblog.com/hdchneg/articles/77098.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/hdchneg/comments/commentRss/77098.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/hdchneg/services/trackbacks/77098.html</trackback:ping><description><![CDATA[<h3><span style="COLOR: rgb(153,51,0)">17. 得到另一个进程里的listctrl控件的item内容</span><span style="COLOR: rgb(51,102,255)"></span></h3>
<h3><span style="COLOR: rgb(51,102,255)"></span></h3>
<span style="COLOR: rgb(51,102,255)"></span><a href="http://www.codeproject.com/threads/int64_memsteal.asp"><u><font color=#0000ff>http://www.codeproject.com/threads/int64_memsteal.asp</font></u></a><br><br><br><u><font color=#0000ff>
<hr style="WIDTH: 100%; HEIGHT: 2px">
</font></u>
<h3><span style="COLOR: rgb(51,102,255)"><span style="COLOR: rgb(153,51,0)">18. 选中listview中的item</span></span> </h3>
Q131284: How To Select a Listview Item Programmatically<br><a href="http://support.microsoft.com/kb/131284/en-us"><u><font color=#0000ff>http://support.microsoft.com/kb/131284/en-us</font></u></a><br><br><br><u><font color=#0000ff>
<hr style="WIDTH: 100%; HEIGHT: 2px">
</font></u>
<h3><span style="COLOR: rgb(153,51,0)">19. 如何在CListView中使用CListCtrl的派生类</span></h3>
<p><a href="http://www.codeguru.com/cpp/controls/listview/introduction/article.php/c919/"><u><font color=#0000ff>http://www.codeguru.com/cpp/controls/listview/introduction/article.php/c919/</font></u></a><br></p>
<p><u><br><font color=#0000ff></font></u></p>
<u><font color=#0000ff>
<hr style="WIDTH: 100%; HEIGHT: 2px">
</font></u>
<h3><span style="COLOR: rgb(153,51,0)">20. listctrl的subitem添加图标</span></h3>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_list.SetExtendedStyle(LVS_EX_SUBITEMIMAGES);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_list.SetItem(..); //具体参数请参考msdn<br></p>
<p>&#160;</p>
<hr style="WIDTH: 100%; HEIGHT: 2px">
<h3><span style="COLOR: rgb(153,51,0)">21. 在CListCtrl显示文件，并根据文件类型来显示图标</span></h3>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 网上找到的代码，share<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BOOL CTest6Dlg::OnInitDialog()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CDialog::OnInitDialog();<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HIMAGELIST himlSmall;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HIMAGELIST himlLarge;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SHFILEINFO sfi;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; char cSysDir[MAX_PATH];<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CString strBuf;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; memset(cSysDir, 0, MAX_PATH);<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GetWindowsDirectory(cSysDir, MAX_PATH);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strBuf = cSysDir;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sprintf(cSysDir, "%s", strBuf.Left(strBuf.Find("<a href="file://%5c%5c%22%29+1/"><u><font color=#0000ff>\\")+1</font></u></a>));<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; himlSmall = (HIMAGELIST)SHGetFileInfo ((LPCSTR)cSysDir, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;sfi, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; s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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ::SendMessage(m_list.m_hWnd, LVM_SETIMAGELIST,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (WPARAM)LVSIL_SMALL, (LPARAM)himlSmall);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ::SendMessage(m_list.m_hWnd, LVM_SETIMAGELIST,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (WPARAM)LVSIL_NORMAL, (LPARAM)himlLarge);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return TRUE; // return TRUE unless you set the focus to a control<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; void CTest6Dlg::AddFiles(LPCTSTR lpszFileName, BOOL bAddToDocument)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int nIcon = GetIconIndex(lpszFileName, FALSE, FALSE);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CString strSize;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CFileFind filefind;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // get file size<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (filefind.FindFile(lpszFileName))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; filefind.FindNextFile();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strSize.Format("%d", filefind.GetLength());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strSize = "0";<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // split path and filename<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CString strFileName = lpszFileName;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CString strPath;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int nPos = strFileName.ReverseFind('\\');<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (nPos != -1)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strPath = strFileName.Left(nPos);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strFileName = strFileName.Mid(nPos + 1);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // insert to list<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int nItem = m_list.GetItemCount();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_list.InsertItem(nItem, strFileName, nIcon);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_list.SetItemText(nItem, 1, strSize);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_list.SetItemText(nItem, 2, strFileName.Right(3));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_list.SetIt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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;sfi, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sizeof(sfi), <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SHGFI_SMALLICON | SHGFI_SYSICONINDEX | <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SHGFI_USEFILEATTRIBUTES | (bSelected ? SHGFI_OPENICON : 0));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return&nbsp;&nbsp; sfi.iIcon;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br></p>
<p><br></p>
<hr style="WIDTH: 100%; HEIGHT: 2px">
<h3><span style="COLOR: rgb(153,51,0)">22. listctrl内容进行大数据量更新时，避免闪烁</span></h3>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_list.SetRedraw(FALSE);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //更新内容<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_list.SetRedraw(TRUE);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_list.Invalidate();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_list.UpdateWindow();<br><br>或者参考 <br></p>
<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_mfc_cwnd.3a3a.setredraw.asp"><u><font color=#0000ff>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_mfc_cwnd.3a3a.setredraw.asp</font></u></a><br></p>
<p><u><br><font color=#0000ff></font></u></p>
<u><font color=#0000ff>
<hr style="WIDTH: 100%; HEIGHT: 2px">
</font></u>
<h3><span style="COLOR: rgb(153,51,0)">23. listctrl排序 </span></h3>
<p>Q250614：How To Sort Items in a CListCtrl in Report View<br><a href="http://support.microsoft.com/kb/250614/en-us"><u><font color=#0000ff>http://support.microsoft.com/kb/250614/en-us</font></u></a><br></p>
<p><u><br><font color=#0000ff></font></u></p>
<u><font color=#0000ff>
<hr style="WIDTH: 100%; HEIGHT: 2px">
</font></u>
<h3><span style="COLOR: rgb(153,51,0)">24. 在listctrl中选中某个item时动态改变其icon或bitmap</span></h3>
Q141834: How to change the icon or the bitmap of a CListCtrl item in Visual C++<br><a href="http://support.microsoft.com/kb/141834/en-us"><u><font color=#0000ff>http://support.microsoft.com/kb/141834/en-us</font></u></a><br><br><br><u><font color=#0000ff>
<hr style="WIDTH: 100%; HEIGHT: 2px">
</font></u>
<h3><span style="COLOR: rgb(153,51,0)">25. 在添加item后，再InsertColumn()后导致整列数据移动的问题</span></h3>
<p>Q151897: CListCtrl::InsertColumn() Causes Column Data to Shift <br><a href="http://support.microsoft.com/kb/151897/en-us"><u><font color=#0000ff>http://support.microsoft.com/kb/151897/en-us</font></u></a><br></p>
<p><u><br><font color=#0000ff></font></u></p>
<u><font color=#0000ff>
<hr style="WIDTH: 100%; HEIGHT: 2px">
</font></u>
<h3><span style="COLOR: rgb(153,51,0)">26. 关于listctrl第一列始终居左的问题</span></h3>
<p>解决办法：把第一列当一个虚列，从第二列开始插入列及数据，最后删除第一列。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>具体解释参阅&nbsp;&nbsp; <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/listview/structures/lvcolumn.asp"><u><font color=#0000ff>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/listview/structures/lvcolumn.asp</font></u></a><br></p>
<p><u><font color=#0000ff></font></u></p>
<u><font color=#0000ff>
<hr style="WIDTH: 100%; HEIGHT: 2px">
</font></u>
<h3><span style="COLOR: rgb(153,51,0)">27. 锁定column header的拖动</span></h3>
<p><a href="http://msdn.microsoft.com/msdnmag/issues/03/06/CQA/"><u><font color=#0000ff>http://msdn.microsoft.com/msdnmag/issues/03/06/CQA/</font></u></a><br></p>
<p><u><br><font color=#0000ff></font></u></p>
<u><font color=#0000ff>
<hr style="WIDTH: 100%; HEIGHT: 2px">
</font></u>
<h3 style="COLOR: rgb(153,51,0)">28. 如何隐藏clistctrl的列</h3>
<p>&nbsp;&nbsp;&nbsp; 把需隐藏的列的宽度设为0,然后检测当该列为隐藏列时，用上面第27点的锁定column 的拖动来实现<br><br></p>
<hr style="WIDTH: 100%; HEIGHT: 2px">
<h3><span style="COLOR: rgb(153,51,0)">29. listctrl进行大数据量操作时，使用virtual list </span>&nbsp;&nbsp; </h3>
<p><a href="http://www.microsoft.com/msj/archive/S2061.aspx"><font color=#0000ff><u>http://www.microsoft.com/msj/archive/S2061.aspx</u></font></a><br><a href="http://www.codeguru.com/cpp/controls/listview/advanced/article.php/c4151/"><font color=#0000ff><u>http://www.codeguru.com/cpp/controls/listview/advanced/article.php/c4151/</u></font></a><br><a href="http://www.codeproject.com/listctrl/virtuallist.asp"><u><font color=#0000ff>http://www.codeproject.com/listctrl/virtuallist.asp</font></u></a><br></p>
<p><u><br><font color=#0000ff></font></u></p>
<u><font color=#0000ff>
<hr style="WIDTH: 100%; HEIGHT: 2px">
</font></u>
<h3><span style="COLOR: rgb(153,51,0)">30. 关于item只能显示259个字符的问题</span></h3>
<p>解决办法：需要在item上放一个edit。<br></p>
<p><br></p>
<hr style="WIDTH: 100%; HEIGHT: 2px">
<h3><span style="COLOR: rgb(153,51,0)">31. 响应在listctrl的column header上的鼠标右键单击</span></h3>
<p>Q125694: How To Find Out Which Listview Column Was Right-Clicked<br><a href="http://support.microsoft.com/kb/125694/en-us"><u><font color=#0000ff>http://support.microsoft.com/kb/125694/en-us</font></u></a><br></p>
<p><u><br><font color=#0000ff></font></u></p>
<u><font color=#0000ff>
<hr style="WIDTH: 100%; HEIGHT: 2px">
</font></u>
<h3><span style="COLOR: rgb(153,51,0)">32. 类似于windows资源管理器的listview</span></h3>
<p>Q234310: How to implement a ListView control that is similar to Windows Explorer by using DirLV.exe<br><a href="http://support.microsoft.com/kb/234310/en-us"><u><font color=#0000ff>http://support.microsoft.com/kb/234310/en-us</font></u></a><br></p>
<p><u><font color=#0000ff></font></u></p>
<u><font color=#0000ff>
<hr style="WIDTH: 100%; HEIGHT: 2px">
</font></u>
<h3 style="COLOR: rgb(153,51,0)">33. 在ListCtrl中OnTimer只响应两次的问题</h3>
<p>Q200054：<br>PRB: OnTimer() Is Not Called Repeatedly for a List Control<br><a href="http://support.microsoft.com/kb/200054/en-us"><u><font color=#0000ff>http://support.microsoft.com/kb/200054/en-us</font></u></a><br></p>
<u><font color=#0000ff>
<hr style="WIDTH: 100%; HEIGHT: 2px">
</font></u>
<h3><span style="COLOR: rgb(153,51,0)">34. 以下为一些为实现各种自定义功能的listctrl派生类</span></h3>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (1)&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(153,51,0)">拖放</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeproject.com/listctrl/dragtest.asp"><u><font color=#0000ff>http://www.codeproject.com/listctrl/dragtest.asp</font></u></a></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(153,51,0)">在CListCtrl和CTreeCtrl间拖放</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://support.microsoft.com/kb/148738/en-us"><u><font color=#0000ff>http://support.microsoft.com/kb/148738/en-us</font></u></a><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (2)&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(153,51,0)">多功能listctrl</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 支持subitem可编辑，图标，radiobutton，checkbox，字符串改变颜色的类<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeproject.com/listctrl/quicklist.asp"><u><font color=#0000ff>http://www.codeproject.com/listctrl/quicklist.asp</font></u></a><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(153,51,0)">支持排序，subitem可编辑，subitem图标，subitem改变颜色的类</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeproject.com/listctrl/ReportControl.asp"><u><font color=#0000ff>http://www.codeproject.com/listctrl/ReportControl.asp</font></u></a></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (3)&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(153,51,0)">subitem中显示超链接</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeproject.com/listctrl/CListCtrlLink.asp"><u><font color=#0000ff>http://www.codeproject.com/listctrl/CListCtrlLink.asp</font></u></a></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (4)&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(153,51,0)">subitem的tooltip提示</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeproject.com/listctrl/ctooltiplistctrl.asp"><u><font color=#0000ff>http://www.codeproject.com/listctrl/ctooltiplistctrl.asp</font></u></a></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (5)&nbsp;&nbsp;&nbsp;<span style="COLOR: rgb(153,51,0)"> subitem中显示进度条</span>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeproject.com/listctrl/ProgressListControl.asp"><u><font color=#0000ff>http://www.codeproject.com/listctrl/ProgressListControl.asp</font></u></a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeproject.com/listctrl/napster.asp"><u><font color=#0000ff>http://www.codeproject.com/listctrl/napster.asp</font></u></a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeguru.com/Cpp/controls/listview/article.php/c4187/"><u><font color=#0000ff>http://www.codeguru.com/Cpp/controls/listview/article.php/c4187/</font></u></a></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (6)&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(153,51,0)">动态改变subitem的颜色和背景色</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeproject.com/listctrl/highlightlistctrl.asp"><u><font color=#0000ff>http://www.codeproject.com/listctrl/highlightlistctrl.asp</font></u></a><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <a href="http://www.codeguru.com/Cpp/controls/listbox/colorlistboxes/article.php/c4757/"><u><font color=#0000ff>http://www.codeguru.com/Cpp/controls/listbox/colorlistboxes/article.php/c4757/</font></u></a><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (7)&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(153,51,0)">类vb属性对话框</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeproject.com/listctrl/propertylistctrl.asp"><u><font color=#0000ff>http://www.codeproject.com/listctrl/propertylistctrl.asp</font></u></a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeguru.com/Cpp/controls/listview/propertylists/article.php/c995/"><u><font color=#0000ff>http://www.codeguru.com/Cpp/controls/listview/propertylists/article.php/c995/</font></u></a> <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeguru.com/Cpp/controls/listview/propertylists/article.php/c1041/"><u><font color=#0000ff>http://www.codeguru.com/Cpp/controls/listview/propertylists/article.php/c1041/</font></u></a> <br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (8)&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(153,51,0)">选中subitem(只高亮选中的item)</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeproject.com/listctrl/SubItemSel.asp"><u><font color=#0000ff>http://www.codeproject.com/listctrl/SubItemSel.asp</font></u></a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeproject.com/listctrl/ListSubItSel.asp"><u><font color=#0000ff>http://www.codeproject.com/listctrl/ListSubItSel.asp</font></u></a><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (9)&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(153,51,0)">改变行高</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeproject.com/listctrl/changerowheight.asp"><u><font color=#0000ff>http://www.codeproject.com/listctrl/changerowheight.asp</font></u></a><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (10)&nbsp;&nbsp; <span style="COLOR: rgb(153,51,0)">改变行颜色</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeproject.com/listctrl/coloredlistctrl.asp"><u><font color=#0000ff>http://www.codeproject.com/listctrl/coloredlistctrl.asp</font></u></a><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (11)&nbsp;&nbsp; <span style="COLOR: rgb(153,51,0)">可编辑subitem的listctrl</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeproject.com/listctrl/nirs2000.asp"><u><font color=#0000ff>http://www.codeproject.com/listctrl/nirs2000.asp</font></u></a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeproject.com/listctrl/editing_subitems_in_listcontrol.asp"><u><font color=#0000ff>http://www.codeproject.com/listctrl/editing_subitems_in_listcontrol.asp</font></u></a><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (12)&nbsp;&nbsp; <span style="COLOR: rgb(153,51,0)">subitem可编辑，插入combobox，改变行颜色，subitem的tooltip提示</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeproject.com/listctrl/reusablelistcontrol.asp"><u><font color=#0000ff>http://www.codeproject.com/listctrl/reusablelistcontrol.asp</font></u></a><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (13)&nbsp;&nbsp; <span style="COLOR: rgb(153,51,0)">header 中允许多行字符串</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeproject.com/listctrl/headerctrlex.asp"><u><font color=#0000ff>http://www.codeproject.com/listctrl/headerctrlex.asp</font></u></a><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (14)&nbsp;&nbsp; <span style="COLOR: rgb(153,51,0)">插入combobox</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeguru.com/Cpp/controls/listview/editingitemsandsubitem/article.php/c979/"><u><font color=#0000ff>http://www.codeguru.com/Cpp/controls/listview/editingitemsandsubitem/article.php/c979/</font></u></a><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (15)&nbsp;&nbsp; <span style="COLOR: rgb(153,51,0)">添加背景图片</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeguru.com/Cpp/controls/listview/backgroundcolorandimage/article.php/c4173/"><u><font color=#0000ff>http://www.codeguru.com/Cpp/controls/listview/backgroundcolorandimage/article.php/c4173/</font></u></a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeguru.com/Cpp/controls/listview/backgroundcolorandimage/article.php/c983/"><u><font color=#0000ff>http://www.codeguru.com/Cpp/controls/listview/backgroundcolorandimage/article.php/c983/</font></u></a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.vchelp.net/vchelp/archive.asp?type_id=9&amp;class_id=1&amp;cata_id=1&amp;article_id=1088&amp;search_term"><u><font color=#0000ff>http://www.vchelp.net/vchelp/archive.asp?type_id=9&amp;class_id=1&amp;cata_id=1&amp;article_id=1088&amp;search_term</font></u></a>=<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (16) <span style="COLOR: rgb(153,51,0)">自适应宽度的listctrl</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeproject.com/useritems/AutosizeListCtrl.asp"><u><font color=#0000ff>http://www.codeproject.com/useritems/AutosizeListCtrl.asp</font></u></a><br></p>
<p>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; (17) <span style="COLOR: rgb(153,51,0)">改变ListCtrl高亮时的颜色(默认为蓝色)</span><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 处理<code> NM_CUSTOMDRAW <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.codeproject.com/listctrl/lvcustomdraw.asp"><u><font color=#0000ff>http://www.codeproject.com/listctrl/lvcustomdraw.asp</font></u></a></code></p>
<p><code>&nbsp;&nbsp;&nbsp;&nbsp; (18) 改变header颜色<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; <a href="http://www.pocketpcdn.com/articles/hdr_color.html"><u><font color=#0000ff>http://www.pocketpcdn.com/articles/hdr_color.html</font></u></a><br></code></p>
<img src ="http://www.cppblog.com/hdchneg/aggbug/77098.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/hdchneg/" target="_blank">古月西城</a> 2009-03-19 02:19 <a href="http://www.cppblog.com/hdchneg/articles/77098.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>