How to load icon in clipboard!

  • Thread starter Ahmad Jalil Qarshi
  • Start date
A

Ahmad Jalil Qarshi

hi!

i want to load an icon into the clipboard using win32 api. i have loaded the
BMP image using following function.
::SetClipboardData(CF_BITMAP, (HANDLE)hBmp);

but dont know how to load the icon.

Thanx.

Ahmad Jalil Qarshi
 
D

David Lowndes

i want to load an icon into the clipboard using win32 api. i have loaded the
BMP image using following function.
::SetClipboardData(CF_BITMAP, (HANDLE)hBmp);

but dont know how to load the icon.

As far as I know, there isn't a standard (CF_ICON format) for copying
icons to the clipboard.

Dave
 
A

Ahmad Jalil Qarshi

but i dont think so that there would be no method to copy icon in clipboard.
 
D

David Lowndes

but i dont think so that there would be no method to copy icon in clipboard.

What other program do you expect to be able to paste the icon to? See
if you can find what clipboard format it expects icons to be in.

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top