How to change *.ico for button in running mode?
Posted
by karikari
on Stack Overflow
See other posts from Stack Overflow
or by karikari
Published on 2010-05-10T05:45:58Z
Indexed on
2010/05/10
5:54 UTC
Read the original article
Hit count: 325
visual-c++
I am currently doing visual c++ for an Internet Explorer toolbar button. I have a registration script file (*.rgs) that defines or maybe register the features of my button inside the Windows registry. My objective is, I want my button to change its *.ico image, based on certain conditions process from my *.cpp file. My problem is, I don't understand, how can I somehow change the *.ico file for my button in real time, during my application is running?
For example,
IF f = 1, ico_file = green.ico; ELSE ico_file = red.ico;
Any idea, that you guys can point to me, how can I change the *.ico file for my Internet Explorer toolbar button while the IE is running.
© Stack Overflow or respective owner