Copy to Clipboard

I have written code to plot a graph in the ondraw function and use an OnTimer function to update it. I use the right mouse click to freeze the graph. If the existing graph has to be copied to clipboard, How do I do it? This should be done without highlighting anything on the client space just store the whole client space in clipboard.
sramAsked:
Who is Participating?
 
madhiConnect With a Mentor Commented:
Dear sir,
Use OpenClipboard() API fun,Then copy your graph in to the clipboard using the API function SetClipboardData(). Hope it will help you..

0
 
sramAuthor Commented:
In what file do you use it, I presume in the view.cpp file. If you do have a sample code please post that too.
 
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.