请问vfp中如何调用GetCursorPos这个api?

ustc_tweeg 2003-09-29 08:23:35
它返回一个point结构,这个类型怎么表达啊?
...全文
182 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ustc_tweeg 2003-10-01
  • 打赏
  • 举报
回复
弓虽!这就揭贴
zhongyj 2003-09-30
  • 打赏
  • 举报
回复
Declare integer GetCursorPos IN win32api string
p1=repl(chr(0),8)
?GetCursorPos(@p1)
dime num[8]
for i=1 to 8
?trans(asc(substr(p1,i,1)),"@0")
num[i]=right(trans(asc(substr(p1,i,1)),"@0"),2)
endfor
x=val("0x"+num[4]+num[3]+num[2]+num[1])
y=val("0x"+num[8]+num[7]+num[6]+num[5])
?x
?y

2,722

社区成员

发帖
与我相关
我的任务
社区描述
VFP,是Microsoft公司推出的数据库开发软件,用它来开发数据库,既简单又方便。
社区管理员
  • VFP社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧