// GetWindowData.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include "GetWindowData.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// 唯一的应用程序对象
//CString strTitle = "RGBLPR车牌识别系统 V4.0";
//CString strClass = "Button";
CString strTitle = "过期域名抢注软件1.2——索雅软件(SoYaSoft.com)";
CString strClass = "ListView20WndClass";
CWinApp theApp;
using namespace std;
void MyFindListViewWindow(CString strTitle, CString strClass);
BOOL CALLBACK EnumChildProc(
HWND hwnd, // handle to child window
LPARAM lParam // application-defined value
)
{
Sleep(500);
char WindowTitle[100] = { NULL };
GetWindowText(hwnd, WindowTitle, 100);
int nCount = ::SendMessage(hwnd, LB_GETCOUNT, 0, 0);
if (nCount <= 0)
{
cerr << "获取ListBox总行数失败!" << endl;
}
else
{
char szBuf[255];
int nt = 0;
for (int i = 0; i < nCount; i++)
{
nt
VC获取其他软件控件的内容
最新推荐文章于 2022-02-07 08:36:18 发布