Click here to Skip to main content
15,883,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

1 solution

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

C#
char buffer[1024]={0};
if (GetClipboardFormatName(49391,buffer,sizeof(buffer)) != 0)
    OutputDebugString(buffer);
 
Share this answer
 
Comments
GoonerGator 26-Aug-10 14:12pm    
thanks.. it helped.. the number that appears there is not actually the "format value" but instead the value returned by RegisterClipBoardFormat.. makes sense too since we can have custom defined formats.. only, if msdn could explain this before.. would have saved me 3-4 hours..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900