![]() |
How to change a bitmap on a ToolBar |
Post Reply ![]() |
Author | |
VAGB ![]() Newbie ![]() Joined: 23 November 2004 Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() Posted: 25 November 2005 at 7:57am |
Hello. I have a ToolBar with a resource of 3 images. I need to change these images according to the actions of the user. I mean, one of the images is a "Play" image. I need to change that image for other in grayscale showing that there is no any playing available, for example when the user selects a non playable item of a list. I canīt find out the way to make this as I donīt understand very well the tasks that CXTPCommandBars, CXTPCommandBar, CXTPImageManager and CXTPPaintManager develope. It seems to be an only object of CXTPCommandBars class that acts as a set of all existing CXTPCommandBar elements. I have tried with CXTPImageManager but it seems to deal only with icons and not with images. In addition I have tried to use pIconsInfo->bUseDisableIcons but it does not work at all. The image remains as it was created. I know this may be a rather obvious topic for many users, therefore some explanation of these elements would be very welcome. Thanks in advance! |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Best way it to set icon in update handler for command id: void CSliderSampleView::OnUpdatePlayerPlay(CCmdUI* pCmdUI) |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |