怎样获得当前鼠标所在位置的窗口句柄RT怎样获得当前鼠标所在位置的窗口句柄?[解决办法]GetCursorPos() API返回屏幕鼠标位置。 WindowFromPoint()API从鼠标位置返回窗口HWND句柄[解决办法]1楼已经说了啊:WindowFromPoint()API返回窗口句柄