拖放查询 [英] Drag Drop query

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

问题描述



我是第一次在MFC中进行拖放操作,因此感到非常不适..我看到某种格式用于列表内拖放,其值始终为49391.我不知道这个数字是从哪里来的.我只注册了两种格式,即CF_HDROP和另一种私人格式[谁的值与此不符] ..有人可以帮忙吗?

而且很奇怪,当我检查msdn时,它没有给出如此高的任何格式值

Hi,

I am working for the first time on Drag-Drop in MFC and I am stuck very badly.. I see some format being used for intra-list drag-drop and its value is 49391 always. I have no idea where this number is coming from. I have registered only two formats viz CF_HDROP and another private format [ who value does not match with this ].. can someone please help with this ?

And strange enough, when I checked on msdn, it doesn''t give any format value this high http://msdn.microsoft.com/en-us/library/ff729168%28VS.85%29.aspx[^]:omg: I am getting this value consistently; inspite of re-builds; restarts etc.. So, I am guessing it must be some kind of standard format.. Any kind of assistance would be greatly helpful.

推荐答案

看一下名称格式编号,看看是否有帮助.

Look at the name for the format number and see if that helps.

char buffer[1024]={0};
if (GetClipboardFormatName(49391,buffer,sizeof(buffer)) != 0)
    OutputDebugString(buffer);


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

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