How to change *.ico for button in running mode?
- by karikari
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.