文件名称:GWTTest
介绍说明--下载内容均来自于网络,请自行研究使用
获得另一个应用程序窗口中的文本,如果您在用C编程,自然用HWND代替CWnd。有人肯定会问:嘿,等一下——如果这样做可以的话,为什么GetWindowText不起作用呢?WM_GETTEXT不就是GetWindowText发送的吗?错也,GetWindowText只在窗口属于当前进程时才发送WM_GETTEXT,否则它干别的事情。这一点文档中说得很清楚:
-Access to another application window, the text, if you use the C programming, natural to use HWND instead of CWnd. Some people will surely ask: Hey, wait a minute- if you can, if you do, why GetWindowText does not work it? GetWindowText sent WM_GETTEXT not that it? Wrong also, GetWindowText only when the window is the current process to send WM_GETTEXT, otherwise it do other things. This is clearly stated in the document:
-Access to another application window, the text, if you use the C programming, natural to use HWND instead of CWnd. Some people will surely ask: Hey, wait a minute- if you can, if you do, why GetWindowText does not work it? GetWindowText sent WM_GETTEXT not that it? Wrong also, GetWindowText only when the window is the current process to send WM_GETTEXT, otherwise it do other things. This is clearly stated in the document:
(系统自动生成,下载前可以参看下载内容)
下载文件列表
GWTTest