Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

clipborad --CTRL+ C from explorer and CTRL +V into PB

102 views
Skip to first unread message

lwl

unread,
Jan 13, 2010, 3:51:01 AM1/13/10
to
anyone who would give an example about how pb get all info in clipborad
,not just string?

and

If i want to drag sth from pb to explorer,how can i do this? can pb capture
where user droped out of pb ?

I hope Roland may give me some suggestion,^_^

Jeremy Lakeman

unread,
Jan 13, 2010, 8:22:49 AM1/13/10
to

Dragging a file out of an application, like say outlook does with
attachments, involves all kinds of low level ole magic. I haven't seen
a simple solution that can do this.

Dragging a file into an application is easy-ish
(pbm_dropfiles / http://msdn.microsoft.com/en-us/library/bb774303%28VS.85%29.aspx)

Copying and pasting files isn't too difficult, though I haven't done
it myself, this VB example should point you towards the right external
functions;
http://www.developerfusion.com/code/224/copy-files-to-clipboard/

Roland Smith [TeamSybase]

unread,
Jan 13, 2010, 8:31:44 AM1/13/10
to
My Bitmap capture example also places the bitmap on the clipboard so some of
the functions you need are there.
http://www.topwizprogramming.com/freecode_bitmap.html

MSDN Documentation for GetClipboardData:
http://msdn.microsoft.com/en-us/library/ms649039(VS.85).aspx

You need to do the following:

open the clipboard

call GetClipboardData to get a handle

copy the data from the handle to a local variable

close the clipboard


"lwl" <l...@esunsoft.cn> wrote in message news:4b4d8975@forums-1-dub...

lwl

unread,
Jan 13, 2010, 11:44:58 AM1/13/10
to
thank you very much ,Roland and Jeremy,I will have a try

"Roland Smith [TeamSybase]" <rsmith_at_trusthss_dot_com> д����Ϣ����:4b4dcb40$1@forums-1-dub...

james.b...@gmail.com

unread,
Aug 9, 2013, 9:28:46 AM8/9/13
to
Were you able to get this working in PB? i've been struggling to implement this same functionality. Thanks.
0 new messages