LVM_DELETEITEM消息后,ListView损坏 [英] ListView corrupt after LVM_DELETEITEM message

查看:150
本文介绍了LVM_DELETEITEM消息后,ListView损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用LVM_DELETEITEM消息删除项目后,多列Listview控件(在报表视图中)项目列表已损坏;该项目是视觉上"删除的,但是该项目列表的一部分在listview的项目索引中产生了"off by one"错误.
也许在相应的LVN_DELETE通知中需要一些清理",但是我不知道该怎么办.我在带有VC6的Windows 2000上使用Win32 API.请帮忙.
Bilal

Multicolumn Listview control (in report view) item list becomes corrupted after deleting an item using LVM_DELETEITEM message; the item is "visually" removed however part of the item list spawns an "off by one" error in the listview''s item index.
Perhaps some "clean up" is needed in the corresponding LVN_DELETE notification, but I have no idea what. I am using Win32 API on windows 2000 with VC6. Please help.
Bilal

推荐答案

使用LVM_DELETEITEM没有任何先决条件,除了项目编号(从零开始)有效外.

也许您看到了一些显示瑕疵;尝试在删除后在列表控件上执行RedrawWindow().
There are no pre- or post-requisites for using LVM_DELETEITEM, other than that the item number (zero based) be valid.

Perhaps you are seeing some display artifacts; try to do a RedrawWindow() on the list control after the delete.


这篇关于LVM_DELETEITEM消息后,ListView损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆