late_binding_of_image.shtml
来自「mfc资源大全包含MFC编程各个方面的源码」· SHTML 代码 · 共 32 行
SHTML
32 行
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Author" CONTENT="Zafir Anjum">
<META NAME="GENERATOR" CONTENT="Mozilla/4.0 [en] (WinNT; I) [Netscape]">
<TITLE>Late binding of image - I_IMAGECALLBACK</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">Late binding of image - I_IMAGECALLBACK</FONT></H3></CENTER>
<HR WIDTH="100%">When inserting an item in the list view control, you don抰
have to specify the image just then. You can delay a decision on the image
by using a callback item. A callback item is an item that causes the list
view control to send the LVN_GETDISPINFO notification to its parent whenever
it needs information to display the item. The LVN_GETDISPINFO notification
can be handled by the parent window or it can be reflected back to the
list view control, the latter solution being the more preferred. Here are
the steps to use message reflection.
<BR>
<UL>
<LI>
Add a message handler for =LVN_GETDISPINFO in your CListCtrl derived class.
The
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?