bmp from clipboard ?

Archives Forums/Win32 Discussion/bmp from clipboard ?

Panno(Posted 2005) [#1]
.


Suco-X(Posted 2006) [#2]
*Push*

I wrote two functions for you



Or read here
<CLICK>


EOF(Posted 2006) [#3]
Great stuff Suco.
I've added a TextToClipboard function

*EDIT (fixes posted below added with thanks)




Suco-X(Posted 2006) [#4]
Hi
Here the new code.



more complicated, but works fine here.


EOF(Posted 2006) [#5]
Magic. Works here too.
Just a couple of questions:

1) In the TextToClipboard function should the Memblock be freed using GlobalFree() ?
2) Could you possibly write a PixmapToClipboard() function?

This stuff is a bit beyond me but thanks very much so far Suco.


Suco-X(Posted 2006) [#6]
Hi
1: You are right.
You need

Function GlobalFree(Mem:Int)

in the extern block and this

is the new function.

2: Yes, itīs possible. Give me some hours.