473,394 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to load icon in clipboard!

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
Nov 17 '05 #1
3 1020
>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
Nov 17 '05 #2
but i dont think so that there would be no method to copy icon in clipboard.

"David Lowndes" <da****@example.invalid> wrote in message
news:69********************************@4ax.com...
i want to load an icon into the clipboard using win32 api. i have loaded theBMP 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

Nov 17 '05 #3
>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
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: LG | last post by:
Just have a question with regards to the clipboard, and how to read what other applications (Adobe InDesignCS) place in the clipboard. I am currently in the process of creating a booklet from a...
4
by: Ed Sutton | last post by:
I have been searching for how to get an icon resource and load it into an ImageList. I added an *.ico file to my project and set the files "Build Action" to "Embedded Resource". Is there any easy...
2
by: Ed Sutton | last post by:
What's the trick to loading an icon from the embedded resources? Here are the steps I have taken: ------------------------- 1 - I added a file named "FOLDER01.ICO" to my solution project 2 - I...
4
by: IT | last post by:
At run time I want to alternate the images in a picture box dependant on some code. Add created a folder called graphics in my Project and dragged the images there. Now at run time what is there...
3
by: Supra | last post by:
how do i get icon in richtextbox's control in vb.net similar to msn chat?
1
by: Mythran | last post by:
I am attempting to read all of the resources from a Win32 executable, and load each of them to display them on a screen. So, please help figure out why I can't seem to get it right :) First...
1
by: GHUM | last post by:
I have found a "make a icon in traybar" skript, and it loads its Icon from a file hinst = win32gui.GetModuleHandle(None) iconPathName= "c:/myapp/myapp.ico" icon_flags =...
1
by: ourxp | last post by:
Hi I have an idea but not quite sure how to implement it. I have a skeleton of a plug in architecture. My plans are to have the host use a notify icon and place it in the system tray. The plug...
2
elamberdor
by: elamberdor | last post by:
Hi All! Well, i'm modifying a dynamic map, with lat and long datapoints, my problem is it loads in text perfectly onto exact points I specify on the map, ..well now I want to load in...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.