找回密码
 加入
搜索
查看: 3686|回复: 5

[系统综合] 向外部虚拟列表控件的消息取listView列表信息

[复制链接]
发表于 2012-8-27 10:37:03 | 显示全部楼层 |阅读模式
本帖最后由 txxdhnt 于 2012-8-27 10:41 编辑

; listview handle
Global $hListView= ControlGetHandle("3905552: FxPro - MetaTrader 4 ", "", "[CLASS:SysListView32; INSTANCE:1]")
ConsoleWrite(@CRLF&"$hListView="&$hListView )
; listview  parent handle
Global $hWnd=_WinAPI_GetParent($hListView)
Local $tNMHDR, $hWndFrom, $iCode,$tNMLVDISPINFO,$aText           
$tNMLVDISPINFO=DllStructCreate($tagNMLVDISPINFO)               
$tFindINFO=DllStructCreate($tagNMLVDISPINFO)
$PFindINO=DllStructGetPtr ($tFindINFO)
$TSize=DllStructGetSize($tNMLVDISPINFO)
$pMemory=_MemInit($hWnd, $TSize, $tNMLVDISPINFO)
_SendMessage($hWnd, $LVN_GETDISPINFO, 0, $pMemory, 0, "wparam", "ptr","lparam");这一句发送消息到LIstView控件        ConsoleWrite(@CRLF&"@error="&@error)
_MemRead($tNMLVDISPINFO, $pMemory, $PFindINO, $TSize)
$Text= DllStructGetData($PFindINO,"Item");这一句取返回的列表信息。       
MsgBox(0,"2",$Text)
_MemFree($tNMLVDISPINFO)
        ConsoleWrite("$tNMLVDISPINFO="&$tNMLVDISPINFO&@CRLF &"$tFindINFO="&$tFindINFO&@CRLF)



那位大侠能指点下,不胜感激。只能酬谢谢。急求:QQ:503840188
 楼主| 发表于 2012-8-27 13:19:46 | 显示全部楼层
顶一下    有高手应征吗?
发表于 2012-8-27 19:17:21 | 显示全部楼层
本帖最后由 楼上风云 于 2012-8-27 19:21 编辑

回复 1# txxdhnt


    你看看下面链接第19楼内容,有无启发
http://www.autoitx.com/forum.php ... hlight=%CD%E2%B2%BF
 楼主| 发表于 2012-8-27 19:45:55 | 显示全部楼层
回复 3# 楼上风云


    先谢谢了。 这个 我那个ListView 的$iStyle=  $LVS_OWNERDATA (This style specifies a virtual control)
就是说,这个listView的数据处理是其它窗口完成的
发表于 2012-8-27 21:51:56 | 显示全部楼层
不懂帮你顶
 楼主| 发表于 2012-8-28 15:35:52 | 显示全部楼层
不要沉下去了
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-6-13 04:37 , Processed in 0.085488 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表