|
本帖最后由 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 |
|