⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listview_toc.shtml.htm

📁 mfc资料集合5
💻 HTM
字号:
<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   <META NAME="Author" CONTENT="Zafir Anjum">
   <TITLE>ListView - Table of Contents</TITLE>
   <META Name="description" Content="Source codes for listview control">
   <META Name="keywords" Content="SOURCE CODE LIST LISTVIEW LISTCTRL CListView CListCtrl IMAGE 
   HEADER VIEWS CONTROL COLUMN INDEX RESIZE MINIMUM AUTO SIZE AUTOSIZE STATIONARY HIGHLIGHT ENTIRE ROW
   EDIT SUBITEMS DROP DOWN SORT INDICATE ORDER GRID LINES VERTICAL HORIZONTAL TITLETIP TIP TOOLTIP TOOL
   DRAG DROP COLOR BACKGROUND IMAGE BITMAP ROW COL HEIGHT CALLBACK PRINT">
</HEAD>
<body background="../fancyhome/back.gif" tppabs="http://www.codeguru.com/fancyhome/back.gif" bgcolor="#FFFFFF" link="#B50029" vlink="#8E2323" alink="#FF0000" bgproperties="fixed">
<table WIDTH="100%">
<tr WIDTH="100%">
<td>
<H1><FONT COLOR="#a0a0ff">ListView Control</FONT></H1>
<td>
<td width=10%></td>
<td align=right><A HREF="http://209.66.99.126/cgi/ads.cgi?advert=genitor"><IMG SRC="../banners/genitor.gif" tppabs="http://www.codeguru.com/banners/genitor.gif" HEIGHT=60 WIDTH=468 ALT="Genitor - award-winning Object Construction Suite for C/C++ development, documentation, and maintainance" BORDER=2></A><BR><SMALL><A HREF="http://209.66.99.126/cgi/ads.cgi?advert=genitor">Click here to get a trail copy of Genitor V3.1</A></SMALL><td>
</tr>
</table>


<HR>

<UL>
<LI>Introduction</LI>
	<UL>
	<LI><A HREF="ctrl_vs_view.shtml.htm" tppabs="http://www.codeguru.com/listview/ctrl_vs_view.shtml">How do I use a derived CListCtrl with a CListView? - Zafir Anjum</A></LI>
	<LI><A HREF="ctrl_vs_view_undoc.shtml.htm" tppabs="http://www.codeguru.com/listview/ctrl_vs_view_undoc.shtml">Using derived CListCtrl in CListView - Undocumented - Zafir Anjum</A></LI>
	<LI><A HREF="text_callback.shtml.htm" tppabs="http://www.codeguru.com/listview/text_callback.shtml">Using text callbacks - Chris Maunder</A></LI>
	</UL>

<LI>Using images</LI>
	<UL>
	<LI><A HREF="init_image_list.shtml.htm" tppabs="http://www.codeguru.com/listview/init_image_list.shtml">Initializing the image list - Zafir Anjum</A></LI>
	<LI><A HREF="set_item_image.shtml.htm" tppabs="http://www.codeguru.com/listview/set_item_image.shtml">Setting or removing an image for an item - Zafir Anjum</A></LI>
	<LI><A HREF="set_non_standard_image.shtml.htm" tppabs="http://www.codeguru.com/listview/set_non_standard_image.shtml">Setting a non-standard size image - Zafir Anjum</A></LI>
	<LI><A HREF="late_binding_of_image.shtml.htm" tppabs="http://www.codeguru.com/listview/late_binding_of_image.shtml">Late binding of image - I_IMAGECALLBACK - Zafir Anjum</A></LI>
	<LI><A HREF="image_in_header.shtml.htm" tppabs="http://www.codeguru.com/listview/image_in_header.shtml">Displaying an image in the header - Zafir Anjum</A></LI>
	<LI><A HREF="imagelist_with_header.shtml.htm" tppabs="http://www.codeguru.com/listview/imagelist_with_header.shtml">Using an imagelist with the header control - Zafir Anjum</A></LI>
	</UL>

<LI>Views</LI>
	<UL>
	<LI>
	<A HREF="switch_views.shtml.htm" tppabs="http://www.codeguru.com/listview/switch_views.shtml">Switching Views - Zafir Anjum</A></LI>
	</UL>

<LI>Columns</LI>
	<UL>
	<LI><A HREF="header_ctrl.shtml.htm" tppabs="http://www.codeguru.com/listview/header_ctrl.shtml">The Header Control - Zafir Anjum</A></LI>
	<LI><A HREF="header_right_click.shtml.htm" tppabs="http://www.codeguru.com/listview/header_right_click.shtml">Determining right click on the header control - Zafir Anjum</A></LI>
	<LI><A HREF="num_cols.shtml.htm" tppabs="http://www.codeguru.com/listview/num_cols.shtml">Getting the number of columns in the report view - Zafir Anjum</A></LI>
	<LI><A HREF="add_column.shtml.htm" tppabs="http://www.codeguru.com/listview/add_column.shtml">Adding a column - Zafir Anjum</A></LI>
	<LI><A HREF="col_index.shtml.htm" tppabs="http://www.codeguru.com/listview/col_index.shtml">Detecting column index of the item clicked - Zafir Anjum</A></LI>
	<LI><A HREF="no_col_resize.shtml.htm" tppabs="http://www.codeguru.com/listview/no_col_resize.shtml">Prevent column resizing - Zafir Anjum</A></LI>
	<LI><A HREF="no_col_resize2.shtml.htm" tppabs="http://www.codeguru.com/listview/no_col_resize2.shtml">Prevent column resizing (2) - Charles Herman</A></LI>
	<LI><A HREF="min_col_width.shtml.htm" tppabs="http://www.codeguru.com/listview/min_col_width.shtml">How to set a minimum column width - Zafir Anjum</A></LI>
	<LI><A HREF="autosize_col.shtml.htm" tppabs="http://www.codeguru.com/listview/autosize_col.shtml">Autosize a column to fit its content - Roger Onslow</A></LI>
	<LI><A HREF="stationary_col.shtml.htm" tppabs="http://www.codeguru.com/listview/stationary_col.shtml">Stationary Columns - Laura Michaels</A></LI>
	<LI><A HREF="col_noclick.shtml.htm" tppabs="http://www.codeguru.com/listview/col_noclick.shtml">Disable clicking on selected report view columns - Petr Novotny</A></LI>
	</UL>

<LI>Selection</LI>
	<UL>
	<LI><A HREF="select_item.shtml.htm" tppabs="http://www.codeguru.com/listview/select_item.shtml">Select item programmatically - Zafir Anjum</A></LI>
	<LI><A HREF="sel_item_click_not_col1.shtml.htm" tppabs="http://www.codeguru.com/listview/sel_item_click_not_col1.shtml">Select an item even if click is not on left most column - Zafir Anjum</A></LI>
	<LI><A HREF="get_selected.shtml.htm" tppabs="http://www.codeguru.com/listview/get_selected.shtml">Retrieving selected items - Zafir Anjum</A></LI>
	<LI><A HREF="sel_item_range.shtml.htm" tppabs="http://www.codeguru.com/listview/sel_item_range.shtml">Selecting and deselecting a range of rows - Zafir Anjum</A></LI>
	<LI><A HREF="sel_row.shtml.htm" tppabs="http://www.codeguru.com/listview/sel_row.shtml">Selection highlighting of entire row - Zafir Anjum</A></LI>
	<LI><A HREF="cell_focus.shtml.htm" tppabs="http://www.codeguru.com/listview/cell_focus.shtml">Set focus on a cell - Shilpa Shamapant</A></LI>
	<LI><A HREF="grid_list_control.shtml.htm" tppabs="http://www.codeguru.com/listview/grid_list_control.shtml">Grid List Control - Rex Myer</A></LI>
	</UL>

<LI>Editing items and subitems</LI>
	<UL>
	<LI><A HREF="allow_edits.shtml.htm" tppabs="http://www.codeguru.com/listview/allow_edits.shtml">Allowing items to be edited - Zafir Anjum</A></LI>
	<LI><A HREF="edit_programmatically.shtml.htm" tppabs="http://www.codeguru.com/listview/edit_programmatically.shtml">Editing item programmatically - Zafir Anjum</A></LI>
	<LI><A HREF="edit_subitems.shtml.htm" tppabs="http://www.codeguru.com/listview/edit_subitems.shtml">Editable subitems - Zafir Anjum</A></LI>
	<LI><A HREF="drop_down_list.shtml.htm" tppabs="http://www.codeguru.com/listview/drop_down_list.shtml">Using a drop down list to change a subitem - Zafir Anjum</A></LI>
	<LI><A HREF="multiline_edit_subitems.shtml.htm" tppabs="http://www.codeguru.com/listview/multiline_edit_subitems.shtml">Multiline Editable Subitems - Rex Myer</A></LI>
	</UL>

<LI>Sorting</LI>
	<UL>
	<LI><A HREF="sort_on_col.shtml.htm" tppabs="http://www.codeguru.com/listview/sort_on_col.shtml">Sorting the list based on text in any column - Zafir Anjum</A></LI>
	<LI><A HREF="sort_on_numeric_col.shtml.htm" tppabs="http://www.codeguru.com/listview/sort_on_numeric_col.shtml">Sorting list on Numeric Column - Todd D. Degani</A></LI>
	<LI><A HREF="sort_on_col_generic.shtml.htm" tppabs="http://www.codeguru.com/listview/sort_on_col_generic.shtml">Sort list based on text/numeric/date-time in any column - Tal J. Rosen</A></LI>
	<LI><A HREF="sort_generic_callback.shtml.htm" tppabs="http://www.codeguru.com/listview/sort_generic_callback.shtml">Sort list (numeric/text) using callback - Iuri Apollonio</A></LI>
	<LI><A HREF="sort_generic_callback1.shtml.htm" tppabs="http://www.codeguru.com/listview/sort_generic_callback1.shtml">Sort list (numeric/text/float/date) using callback - Max Poliashenko</A></LI>
	<LI><A HREF="sort_on_col_image.shtml.htm" tppabs="http://www.codeguru.com/listview/sort_on_col_image.shtml">Sort columns by the image index of the column - Mark Findlay</A></LI>
	<LI><A HREF="auto_resort.shtml.htm" tppabs="http://www.codeguru.com/listview/auto_resort.shtml">Automatically resorting after an edit - Zafir Anjum</A></LI>
	<LI><A HREF="sort_on_col_click.shtml.htm" tppabs="http://www.codeguru.com/listview/sort_on_col_click.shtml">Sorting the list when user clicks on column header - Zafir Anjum</A></LI>
	<LI><A HREF="indicating_sort_order.shtml.htm" tppabs="http://www.codeguru.com/listview/indicating_sort_order.shtml">Indicating sort order in header control - Zafir Anjum</A></LI>
	</UL>

<LI>Grid lines</LI>
	<UL>
	<LI><A HREF="vert_border_lines.shtml.htm" tppabs="http://www.codeguru.com/listview/vert_border_lines.shtml">Vertical lines for column borders - Zafir Anjum</A></LI>
	<LI><A HREF="grid_lines.shtml.htm" tppabs="http://www.codeguru.com/listview/grid_lines.shtml">Drawing horizontal and vertical gridlines - Zafir Anjum</A></LI>
	</UL>

<LI>Tooltip &amp; Titletip</LI>
	<UL>
	<LI><A HREF="header_tooltip.shtml.htm" tppabs="http://www.codeguru.com/listview/header_tooltip.shtml">Tooltip for the header - Zafir Anjum</A></LI>
	<LI><A HREF="header_col_tooltip.shtml.htm" tppabs="http://www.codeguru.com/listview/header_col_tooltip.shtml">Tooltip for individual column header - Zafir Anjum</A></LI>
	<LI><A HREF="cell_tooltip.shtml.htm" tppabs="http://www.codeguru.com/listview/cell_tooltip.shtml">Tooltip for individual cells - Zafir Anjum</A></LI>
	<LI><A HREF="titletip.shtml.htm" tppabs="http://www.codeguru.com/listview/titletip.shtml">Titletip for individual cells - Zafir Anjum</A></LI>
	</UL>

<LI>Drag &amp; Drop</LI>
	<UL>
	<LI><A HREF="drag_col.shtml.htm" tppabs="http://www.codeguru.com/listview/drag_col.shtml">Dragging columns to rearrange column sequence - Zafir Anjum</A></LI>
	<LI><A HREF="drag_rows.shtml.htm" tppabs="http://www.codeguru.com/listview/drag_rows.shtml">Dragging Items to Rearrange Rows - Wayne Berthin</A></LI>
	</UL>

<LI>Background color and image</LI>
	<UL>
	<LI><A HREF="ctrl_color.shtml.htm" tppabs="http://www.codeguru.com/listview/ctrl_color.shtml">Change background color - Zafir Anjum</A></LI>
	<LI><A HREF="row_color.shtml.htm" tppabs="http://www.codeguru.com/listview/row_color.shtml">Change background color of individual rows - Zafir Anjum</A></LI>
	<LI><A HREF="col_color.shtml.htm" tppabs="http://www.codeguru.com/listview/col_color.shtml">Change the background color of individual columns - Zafir Anjum</A></LI>
	<LI><A HREF="background_image.shtml.htm" tppabs="http://www.codeguru.com/listview/background_image.shtml">Use a bitmap as a background image - Zafir Anjum</A></LI>
	</UL>

<li>Advanced</li>
	<ul>
	<li><A HREF="owner_drawn_ctrl.shtml.htm" tppabs="http://www.codeguru.com/listview/owner_drawn_ctrl.shtml">Owner drawn control - Zafir Anjum</A></LI>
	<li><A HREF="change_row_height.shtml.htm" tppabs="http://www.codeguru.com/listview/change_row_height.shtml">Changing row height in owner drawn control - Zafir Anjum</A></LI>
	</ul>

<li>Miscellanious</li>
	<ul>
	<li><A HREF="no_flicker.shtml.htm" tppabs="http://www.codeguru.com/listview/no_flicker.shtml">Stopping flicker during updates - Roger Onslow</A>
	<li><A HREF="non_report_subitem.shtml.htm" tppabs="http://www.codeguru.com/listview/non_report_subitem.shtml">Using sub-stings in non report view - Carsten Witte</A>
	<li><A HREF="print_ctrl.shtml.htm" tppabs="http://www.codeguru.com/listview/print_ctrl.shtml">Printing the control - Philippe Carret</A>
	<li><A HREF="print.shtml.htm" tppabs="http://www.codeguru.com/listview/print.shtml">Print the contents of the list control - Ravi Reddy</A>
	<li><A HREF="../treeview/treelist.shtml.htm" tppabs="http://www.codeguru.com/treeview/treelist.shtml">TreeList : Multi column tree control - David Lantsman</A>
	<li><A HREF="../treeview/use_listcontainer.shtml.htm" tppabs="http://www.codeguru.com/treeview/use_listcontainer.shtml">Connect a list container to a tree/list control - Zoran M.Todorovic</A>
	<li><A HREF="listclass1.shtml.htm" tppabs="http://www.codeguru.com/listview/listclass1.shtml">Class with full row highlighting, dragable headers, sorting - James Schubert</A>
	<li><A HREF="fullrow_and_titletips.shtml.htm" tppabs="http://www.codeguru.com/listview/fullrow_and_titletips.shtml">Full row selection and title tips - Matthew Bells</A>
	</ul>

<li>New ListView control (IE 4.0)</li>
	<ul>
	<li><A HREF="add_checkbox.shtml.htm" tppabs="http://www.codeguru.com/listview/add_checkbox.shtml">Add checkboxes - Eran Yariv</A></LI>
	<li><A HREF="clistctrlex_ie4.shtml.htm" tppabs="http://www.codeguru.com/listview/clistctrlex_ie4.shtml">Class for using new features in listview control - Rui Santos</A></LI>
	</ul>

</UL>
&nbsp;
<CENTER>
<HR></CENTER>

<CENTER><TABLE BORDER=0 WIDTH="100%" >
<TR>
<TD WIDTH="33%"><FONT SIZE=-1><A HREF="../index.htm" tppabs="http://www.codeguru.com/">Goto HomePage</A></FONT></TD>

<TD WIDTH="34%">
<CENTER><FONT SIZE=-2>&copy; 1997 Zafir Anjum&nbsp;</FONT></CENTER>
</TD>

<TD WIDTH="33%">
<DIV ALIGN=right>&nbsp; <FONT SIZE=-1>Contact me: <A HREF="mailto:zafir@home.com">zafir@home.com</A></FONT></DIV>
</TD>
</TR>
</TABLE></CENTER>
<CENTER><IMG SRC="../cgi/Count.cgi-df=listview_toc.cnt" tppabs="http://www.codeguru.com/cgi/Count.cgi?df=listview_toc.cnt" ALIGN="BOTTOM" BORDER="0"></CENTER>
</BODY>
</HTML>

⌨️ 快捷键说明

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