拖动位图的示例 [英] Example of dragging bitmaps

查看:70
本文介绍了拖动位图的示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hiya


可以有人指导我做一些代码示例来执行以下操作:


在表单上显示一个位图然后使用鼠标的左下按钮移动即可拖动。


提前致谢


Geoff

解决方案

Geoff,


MSDN上的这个样本不是你的意思吗?


请参阅拖动图片

http://msdn.microsoft.com/library/de...mpdragdrop.asp

我希望这有帮助吗?


Cor


Hi Cor


啊,不太好。我正在寻找的是一种移动位图图像的方法

围绕一个表格,即你实际上可以看到它被移动。


我的一个例子试图完成将会移动棋子

即如果正在写国际象棋游戏,我希望能够在屏幕上移动棋子




Geoff


" Cor Ligthert" <无************ @ planet.nl>在消息中写道

news:ug ************** @ TK2MSFTNGP14.phx.gbl ...

Geoff,
MSDN上的这个样本不是你的意思吗?

请参阅拖动图片

http://msdn.microsoft.com/library/de ... mpdragdrop.asp

我希望这有帮助吗?

Cor



Geoff,


我曾经做过一次我认为你所问的内容的样本(只是为了表示如何做到这一点你必须要防止他们从窗口和

之类的东西)

http://groups-beta.google.com/group/...486e1e60f1956e


我希望这有帮助吗?


Cor

Hiya

Could anybody direct me to some examples of code to do the following:

Display a bitmap on a form which can then be moved about i.e. dragged, using
the left down button of the mouse.

Thanks in advance

Geoff

解决方案

Geoff,

Is this sample on MSDN not what you mean?

See Dragging a picture

http://msdn.microsoft.com/library/de...mpdragdrop.asp

I hope this helps?

Cor


Hi Cor

Ah, not quite. What I was looking for was a way to move a bitmap image
around a form i.e. you can actually see it being moved.

An example of what I''m trying to accomplish would be moving a chess piece
i.e. if was writing a chess game, I would like to be able to move the pieces
on the screen.

Geoff

"Cor Ligthert" <no************@planet.nl> wrote in message
news:ug**************@TK2MSFTNGP14.phx.gbl...

Geoff,

Is this sample on MSDN not what you mean?

See Dragging a picture

http://msdn.microsoft.com/library/de...mpdragdrop.asp

I hope this helps?

Cor



Geoff,

I have made once a sample of what is in my opinion what you ask (just to
show how it can be done you have to prevent moving from the window and
things like that)

http://groups-beta.google.com/group/...486e1e60f1956e

I hope this helps?

Cor


这篇关于拖动位图的示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆