sort_on_col_image.shtml

来自「mfc资源大全包含MFC编程各个方面的源码」· SHTML 代码 · 共 33 行

SHTML
33
字号
<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   <META NAME="Author" CONTENT="Zafir Anjum">
   <TITLE>CListCtrl - Sort columns by the image index of the column</TITLE>
</HEAD>
<body background="../fancyhome/back.gif" bgcolor="#FFFFFF" link="#B50029" vlink="#8E2323" alink="#FF0000" bgproperties="fixed">
<table WIDTH="100%">
<tr WIDTH="100%">
<td align=center><!--#exec cgi="/cgi/ads.cgi"--><td>
</tr>
</table>


<CENTER>
<H3>
<FONT COLOR="#AOAO99">Sort columns by the image index of the column</FONT></H3></CENTER>

<HR WIDTH="100%">
This code was contributed by Mark Findlay.

<PRE><TT><FONT COLOR="#990000">
// This is a simple modification of the text sorting routine by
// Zafir Anjum. (See <A HREF="sort_on_col.shtml">"Sorting the list based on text in any column"</A>)

//
// It sorts the list based on the image index of the column being 
// sorted. You must only call this function when sorting a column
// that has an image associated with it.
//
// I added an additional helper function GetItemImageIndex() which
// simply returns the image index for the row and column specified.
//

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?