Copy/Cut/Paste with Toolkit

I am writing a program to play collectible card games (e.g., Magic:the Gathering) online. (My site is at http://www.LackeyCCG.com)..) I made my own GUI with buttons, menus, text and such, but I don’t know how to do system independent copy/cut/paste functionality.

Can anyone please direct me to some information on how to copy something to a system clipboard and paste it from a system clipboard?

>I made my own GUI with buttons, menus, text and such, but I don’t know how to do system independent copy/cut/paste functionality.
>
>Can anyone please direct me to some information on how to copy something to a system clipboard and paste it from a system clipboard?

I don’t think there is any system independent copy/cut/paste toolkit. But if there is, I’d also like to hear about it.

If it helps any, I have a way to sneak it into a GLUT program on Windows by SubClassing the window and passing a paste hint via a bogus ctlr-v key message. Search for MsgSubClassProc in here:

http://cvs.sourceforge.net/viewcvs.py/ldglite/ldglite/main.c?view=markup

for a really sloppy example.

You could try using FLTK it has opengl windows and cross platform copy/paste support