以文本方式查看主题 - Foxtable(狐表) (http://www.foxtable.com/bbs/index.asp) -- 专家坐堂 (http://www.foxtable.com/bbs/list.asp?boardid=2) ---- 请问一下关于ChildWindowFromPoint的问题 (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=161046) |
-- 作者:tcmhl -- 发布时间:2021/3/4 8:47:00 -- 请问一下关于ChildWindowFromPoint的问题 Public Structure POINTAPI Dim x As long Dim y As long End Structure <DllImport("user32.dll", EntryPoint := "ChildWindowFromPoint", SetLastError := True)> _ Public Function ChildWindowFromPoint(ByVal hWnd As Long, ByVal lpPoint As POINTAPI) As Long End Function \'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\' dim p as POINTAPI dim hWnd as long p.x =100 p.y = 100 hWnd=530246 messagebox.show(ChildWindowFromPoint(hWnd,p)) 无法正常运行 我p.y改到多大都能显示句柄 请帮忙看一下谢谢
|
-- 作者:有点蓝 -- 发布时间:2021/3/4 9:15:00 -- 我也不懂,百度了一下,也看不出个所以然 |