Office中国论坛/Access中国论坛

标题: [求助]请教书实例(第十二章)的疑问 [打印本页]

作者: tonywong    时间: 2006-6-6 18:23
标题: [求助]请教书实例(第十二章)的疑问
各位班主及<<Access开发答疑>>作者们

在<<Access开发答疑>>中第12章中,162"如何设置Listview控件的各种属性"一例中,

我按书上的代码做一个实例,但是,在给Listview加载数据时出错!请大侠帮我看看代码那里出错啦!先谢!

附件:
[attach]18311[/attach]


[此贴子已经被作者于2006-6-6 10:23:59编辑过]


作者: tonywong    时间: 2006-6-6 20:08
tmtony大侠在哪啦?
作者: andymark    时间: 2006-6-7 00:35
必须声明SendMessage

Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Integer, ByVal lParam As Any) As Long
作者: tonywong    时间: 2006-6-7 00:56
谢谢版主,还是出错呀,请再帮忙

[attach]18334[/attach]
[attach]18335[/attach]
[attach]18336[/attach]

作者: andymark    时间: 2006-6-7 01:07
你仔细对比一下书本(我没有)

SendMessage lvwList.hwnd, LVM_SETHOVERTIME, 0, ByVal 2&   ‘应是这样吧

InitList 有几个参数,你什么都没有写当然不行




作者: tonywong    时间: 2006-6-7 17:03
谢谢andymark!

哈哈!已经搞定啦!
作者: minikooo    时间: 2014-11-7 19:29
试试




欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) Powered by Discuz! X3.3