依次用以下API<br>BOOL GetCursorPos( //得到鼠标位置<br> LPPOINT lpPoint // address of structure for cursor position <br> <br><br>HWND WindowFromPoint( //得到鼠标位置下的窗口句柄<br> POINT Point // structure with point<br> <br><br>如果你要看星星用:<br>int GetWindowText(<br><br> HWND hWnd, // handle of window or control with text<br> LPTSTR lpString, // address of buffer for text<br> int nMaxCount // maximum number of characters to copy<br> <br>或者向窗口句柄发WM_GETTEXT消息。<br>