GetWindowText function
Copies the text of the specified window's title bar (if it has one) into a buffer. If the specified window is a control, the text of the control is copied. However,
GetWindowText
cannot retrieve the text of a control in another application.
GetWindowText 功能
拷贝某一特定窗口的标题文本(如果有的话)到缓冲。如果这个窗口是某一控件,控件的文本将被拷贝。但是GetWindowText不能取回另一个程序的控件的文本。