By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,601 Members | 1,116 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,601 IT Pros & Developers. It's quick & easy.

Copy bitmap to clipboard

P: n/a
Hello,

I have the following problem. I should like to copy my bitmap test.bmp
into windows clipboard.
I have already a little frame:

const CWnd *pWnd;
CBitmap bitmap;

::OpenClipboard(pWnd->GetSafeHwnd());
::EmptyClipboard() ;
::SetClipboardData (CF_BITMAP, bitmap.GetSafeHandle() ) ;
::CloseClipboard () ;
bitmap.Detach();

But I don't know how to initialise pWnd and pass my .bmp file?

Can someone help me?

Best regards
Jana

Apr 20 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Jana wrote:
Hello,

I have the following problem. I should like to copy my bitmap test.bmp
into windows clipboard.

Try a windows group, this isn't a C++ problem.

--
Ian Collins.
Apr 20 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.