- 6
- 0
- 约 3页
- 2017-06-16 发布于重庆
- 举报
读取应用程序中listview的内容
读取应用程序中listview的内容
标签: win32? API? listview? 分类: windows 2008-11-17 08:28
/*?应用程序必须是vc编写的,这样才有listview类 */
/*?这个程序读取的,是一个报价软件的黄金报价,报价是放在listview控件里的 */
先用spy++看看它的结构,spy++看到的结果如下:
很简单,是一个Popup prices的窗口,下面是一个sysListView子类。
/* 程序如下 */
#define WIN32_LEAN_AND_MEAN#include stdio.h#include stdlib.h#include string.h#include windows.h#include commctrl.h
int main() {?HWND? m_handle;
?HWND? listview;
?m_handle = ::FindWindow(NULL,TEXT(Popup prices));//在桌面上找名为Popup prices的窗口,返回其句柄
?listview = FindWindowEx(m_handle,0,TEXT(SysListView32),NULL);//找m_handle的子类,类名为SysListView32
?int count=(int)Send
原创力文档

文档评论(0)