| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 487 人关注过本帖
标题:[求助]超极菜鸟+绝对初学者求助,第一次狂这个论坛.
只看楼主 加入收藏
梦幻之人
Rank: 1
等 级:新手上路
帖 子:18
专家分:0
注 册:2005-5-13
收藏
 问题点数:0 回复次数:3 
[求助]超极菜鸟+绝对初学者求助,第一次狂这个论坛.
今天看书有一段代码看不懂:
option explicit
private type POINTAPI x as long
y as long
end type
const srccopy=&HCC0020
private declare function GetCursorPos Lib "user32" (lpPoint AS POINTAPI) AS Long
private declare function GetDC Lib "user32" (ByVal hWnd AS Long) AS Long
private declare function GetCursorPos Lib "grid32" (Byval hdc as long,byval x as long,byval y as_ long,byval nwidth as long,byval nheight as long,byval hsrcdc as long,byval xsrc as long,byval ysrc as_ long,byval nsrcwidth as long,byval nsrcheight as long,byval dwrop as long) AS Long


其中红色和蓝色的部分不理解,请大家帮帮我吧.谢谢[em01" target="_blank" >!@[em01]

2007-04-14 15:16
wenber0598
Rank: 1
等 级:新手上路
帖 子:101
专家分:0
注 册:2007-2-27
收藏
得分:0 
API声明

三人行必有我师
2007-04-14 15:28
清澂居士
Rank: 6Rank: 6
等 级:贵宾
威 望:28
帖 子:1237
专家分:7
注 册:2006-12-19
收藏
得分:0 

private declare function GetCursorPos Lib "user32" (lpPoint AS POINTAPI) AS Long

‘获取鼠标坐标

private declare function GetDC Lib "user32" (ByVal hWnd AS Long) AS Long
’获取指定窗口的设备场景

private declare function GetCursorPos Lib "grid32" (Byval hdc as long,byval x as long,byval y as_ long,byval nwidth as long,byval nheight as long,byval hsrcdc as long,byval xsrc as long,byval ysrc as_ long,byval nsrcwidth as long,byval nsrcheight as long,byval dwrop as long) AS Long

可能没有这个函数 或者是自定义的DLL函数输出·

佛曰:\"前世的500次回眸才换来今生的一次擦肩而过\".我宁愿用来世的一次擦肩而过来换得今生的500次回眸.
2007-04-14 15:31
梦幻之人
Rank: 1
等 级:新手上路
帖 子:18
专家分:0
注 册:2005-5-13
收藏
得分:0 

谢谢楼上两位,这真是个学东西的好论坛

2007-04-14 18:25
快速回复:[求助]超极菜鸟+绝对初学者求助,第一次狂这个论坛.
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.024075 second(s), 10 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved