轻
轻舞肥羊
Unregistered / Unconfirmed
GUEST, unregistred user!
已在CSDN发贴http://topic.csdn.net/u/20090901/10/27bb69f5-a9b7-4dd2-b91a-2d523d56534a.html?81911有个程序是C++写的,类名:SysListView32,样式带有以下样式 LVS_OWNERDATA LVS_OWNERDRAWFIXED 用以下代码能取到Delphi自带例子"Virtual Listview"中的数据(转自刘麻子在DFW的回贴) Delphi(Pascal) codefunction ListView_GetItemText_Mz(hListView: HWnd; iItem, iSubItem: Integer; pszText: PChar; cchTextMax: Integer): Integer;var DispInfo: TLVDispInfo;begin DispInfo.hdr.hwndFrom := hListView; DispInfo.hdr.idFrom := GetDlgCtrlID(hListView); DispInfo.hdr.code := LVN_GETDISPINFO; ZeroMemory(@DispInfo.item, SizeOf(DispInfo.item)); DispInfo.item.mask := LVIF_TEXT; DispInfo.item.iItem := iItem; DispInfo.item.iSubItem := iSubItem; DispInfo.item.pszText := pszText; DispInfo.item.cchTextMax := cchTextMax; Result := SendMessage(GetParent(hListView), WM_NOTIFY, GetDlgCtrlID(hListView), Integer(@DispInfo));end;但取不到C++写的这个程序中ListView的内容,想请教下这种内容如何取