| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1899 人关注过本帖
标题:一个关于BeginDrag函数的问题
只看楼主 加入收藏
lxqlyld
Rank: 3Rank: 3
等 级:论坛游侠
帖 子:116
专家分:125
注 册:2012-6-18
结帖率:85.29%
收藏
已结贴  问题点数:20 回复次数:5 
一个关于BeginDrag函数的问题
在看书中遇到了一些BeginDrag函数,不知道是什么意思,模式都是这样的,BeginDrag(true)或BeginDrag(false).请问各位高手,这些函数都是什么意思啊
搜索更多相关主题的帖子: false 
2012-09-14 14:40
pangding
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
来 自:北京
等 级:贵宾
威 望:94
帖 子:6784
专家分:16751
注 册:2008-12-20
收藏
得分:5 
好像是 mfc 里的函数。书里上下文应该有提吧,这个程序是处理什么?如果没提楼主只能自己百度一下了。
2012-09-14 20:13
zhuanjia0
Rank: 4
等 级:业余侠客
威 望:3
帖 子:86
专家分:232
注 册:2012-1-13
收藏
得分:5 
建议下载MSDN,遇到不懂的函数就查。
2012-09-15 11:55
lxqlyld
Rank: 3Rank: 3
等 级:论坛游侠
帖 子:116
专家分:125
注 册:2012-6-18
收藏
得分:0 
回复 2楼 pangding
书上没有提示,就直接在程序中出现了,函数处理的是将列表框TListBox中的内容拖到TStringGrid组件中,同时允许将TStringGrid组件单元格中的内容拖到另一个单元格中。程序是BCB中的
2012-09-18 12:30
peach5460
Rank: 15Rank: 15Rank: 15Rank: 15Rank: 15
来 自:武汉
等 级:贵宾
威 望:30
帖 子:2780
专家分:6060
注 册:2008-1-28
收藏
得分:5 
BOOL BeginDrag(
   int nImage,
   CPoint ptHotSpot
);
Parameters

nImage
Zero-based index of the image to drag.

ptHotSpot
Coordinates of the starting drag position (typically, the cursor position). The coordinates are relative to the upper left corner of the image.

Return Value
Nonzero if successful; otherwise 0.

Remarks
This function creates a temporary image list that is used for dragging. The image combines the specified image and its mask with the current cursor. In response to subsequent WM_MOUSEMOVE messages, you can move the drag image by using the DragMove member function. To end the drag operation, you can use the EndDrag member function.

我总觉得授人以鱼不如授人以渔...
可是总有些SB叫嚣着:要么给代码给答案,要么滚蛋...
虽然我知道不要跟SB一般见识,但是我真的没修炼到宠辱不惊...
2012-09-18 12:34
peach5460
Rank: 15Rank: 15Rank: 15Rank: 15Rank: 15
来 自:武汉
等 级:贵宾
威 望:30
帖 子:2780
专家分:6060
注 册:2008-1-28
收藏
得分:5 
请学会使用google或者baidu
在学会使用MSDN...

我总觉得授人以鱼不如授人以渔...
可是总有些SB叫嚣着:要么给代码给答案,要么滚蛋...
虽然我知道不要跟SB一般见识,但是我真的没修炼到宠辱不惊...
2012-09-18 12:35
快速回复:一个关于BeginDrag函数的问题
数据加载中...
 
   



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

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