很急,一个伤心伤脑筋的问题!Delphi好难学啊

雁过留毛 2011-09-17 01:12:44
...
var
p: TPoint;
begin
GetCaretPos(p);
...

上面的GetCaretPos是啥意思,啥时候要带参数啥时候没有参数?
...全文
238 19 打赏 收藏 转发到动态 举报
写回复
用AI写文章
19 条回复
切换为时间正序
请发表友善的回复…
发表回复
chinawcs 2011-09-19
  • 打赏
  • 举报
回复
怎么还有人 说delphi 难学的 ?

那c/c++ 人们怎么活
爱蹄子的羊头 2011-09-19
  • 打赏
  • 举报
回复
参数是肯定要带的, 不然 光标没有地方记录了.


参数就是一个 TPoint的 结构体. 里面有两个 int值.记录x y 坐标
「已注销」 2011-09-18
  • 打赏
  • 举报
回复
MSDN是关于开发编程的东西,所有的API函数上面都有详细讲解,你可以上那种在线,例子多点
jingtuzhong 2011-09-18
  • 打赏
  • 举报
回复
http://baike.baidu.com/view/1079853.htm参数是由函数本身决定的,有些参数可省略,多看书,多上论坛,多编程
rainychan2009 2011-09-18
  • 打赏
  • 举报
回复
[Quote=引用 10 楼 yanguoliumao 的回复:]
引用 9 楼 iqyely 的回复:
直接MSDN,上面都有详细的说明


MSDN是啥东东啊
[/Quote]
Mircosoft Developer Net.
http://baike.baidu.com/view/24472.htm
只要是MS提供的API都可以查询到
雁过留毛 2011-09-18
  • 打赏
  • 举报
回复
[Quote=引用 9 楼 iqyely 的回复:]
直接MSDN,上面都有详细的说明
[/Quote]

MSDN是啥东东啊
iqyely 2011-09-18
  • 打赏
  • 举报
回复
直接MSDN,上面都有详细的说明
雁过留毛 2011-09-18
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 tjianliang 的回复:]
http://baike.baidu.com/view/1079853.htm
http://bbs.pediy.com/showthread.php?t=61157
[/Quote]

这其中第一条信息非常接近我想知道的,可惜它只讲了一半。我很想了解哪些因素容易导致其执行失败..
liuchyx2007 2011-09-18
  • 打赏
  • 举报
回复
帮 顶 一下,000000000000
新自由呼吸 2011-09-18
  • 打赏
  • 举报
回复
兄弟,挺住~其实delphi相对而言是比较简单的了
五哥 2011-09-18
  • 打赏
  • 举报
回复
API
cntigercat 2011-09-18
  • 打赏
  • 举报
回复
F1
















.
浩南_哥 2011-09-17
  • 打赏
  • 举报
回复
windows API而已。
贝隆 2011-09-17
  • 打赏
  • 举报
回复
Windows API函数,功能是获取光标的位置。
鐵蛋 2011-09-17
  • 打赏
  • 举报
回复
delphi自帶的API幫助里應該有些信息,可以看看
xinghun61 2011-09-17
  • 打赏
  • 举报
回复
GetCaretPos用于获取当前光标的位置(简言之就是当前键盘的输入位置,一般是我们平时看到的屏幕上那根一闪一闪的竖线)
另外,还可以用SetCaretPos来设置光标的位置,用ShowCaret和HideCaret来显示或隐藏光标。

关于这几个函数的详细信息,可以参考MSDN,1楼的朋友已经贴出来了,呵呵。
亮剑_ 2011-09-17
  • 打赏
  • 举报
回复
http://baike.baidu.com/view/1079853.htm
http://bbs.pediy.com/showthread.php?t=61157
hongss 2011-09-17
  • 打赏
  • 举报
回复
API函数

The GetCaretPos function copies the caret's position, in client coordinates, to the specified POINT structure.

BOOL GetCaretPos(

LPPOINT lpPoint // address of structure to receive coordinates
);


Parameters

lpPoint

Points to the POINT structure that is to receive the client coordinates of the caret.



Return Values

If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

The caret position is always given in the client coordinates of the window that contains the caret.

5,388

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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