Relacing the image in CImageList contl
-
I want to change replace old image with new image in the Imagelist at 9 index. So I have used the Relace function, In that the 3 parameter saying the Bitmap mask. that i couldn't understood. Pls provide me the example for replace a image in the image list. My actual aim is to change the toolbar button image, when i cliked that toolbar button. Provide me solution
-
I want to change replace old image with new image in the Imagelist at 9 index. So I have used the Relace function, In that the 3 parameter saying the Bitmap mask. that i couldn't understood. Pls provide me the example for replace a image in the image list. My actual aim is to change the toolbar button image, when i cliked that toolbar button. Provide me solution
Hi, I could't get ur real problem. Any way, i already tell that set hot and cold image list for tool bar.Hot image list is for the image when we focus on the toolbar button.
-
I want to change replace old image with new image in the Imagelist at 9 index. So I have used the Relace function, In that the 3 parameter saying the Bitmap mask. that i couldn't understood. Pls provide me the example for replace a image in the image list. My actual aim is to change the toolbar button image, when i cliked that toolbar button. Provide me solution
The mask bitmap is use to make some part of the original image transparent. Thie value have effect only if you have created the image list with flag
ILC_MASK
. But I think in your case rather than replacing the ICon in the image list, just change the icon index of the button using theCToolBar::SetButtonInfo()
fuction. -
Hi, I could't get ur real problem. Any way, i already tell that set hot and cold image list for tool bar.Hot image list is for the image when we focus on the toolbar button.
-
Hi, I could't get ur real problem. Any way, i already tell that set hot and cold image list for tool bar.Hot image list is for the image when we focus on the toolbar button.
-
The mask bitmap is use to make some part of the original image transparent. Thie value have effect only if you have created the image list with flag
ILC_MASK
. But I think in your case rather than replacing the ICon in the image list, just change the icon index of the button using theCToolBar::SetButtonInfo()
fuction. -
Hi, I could't get ur real problem. Any way, i already tell that set hot and cold image list for tool bar.Hot image list is for the image when we focus on the toolbar button.