Problem with colour in Resource Editor
-
Hi all, Iam changing the backGround colour of a bitmap. When I go to the "ResourceView" of my visual studio editor,Click on the bitmap,The bitmap is displayed. I wanted to add a new custom colour as the "colors" toolbar doesn't contain any colour,of interest to me. so I go to the "Image" menu & call "AdjustColours" to add my new custom colour.Using this colour I change the background of my bitmap & the colour is changed. Now When I run my application the customcolour which I added is not displayed in the bitmap as background. Iam using this bitmap as an image in my CTreeCtrl,which is created at runtime. I have my CTreeclass: public CTreeCtrl In the OnInitDialog,I do as follows: m_ImageList.Create(IDB_MRO_IMAGELIST, 16, 1, RGB(255, 255, 255))) m_wndTree.SetImageList(&m_ImageList, TVSIL_NORMAL); //m_wndTree is my class derived from CtreeCtrl Thanks...
-
Hi all, Iam changing the backGround colour of a bitmap. When I go to the "ResourceView" of my visual studio editor,Click on the bitmap,The bitmap is displayed. I wanted to add a new custom colour as the "colors" toolbar doesn't contain any colour,of interest to me. so I go to the "Image" menu & call "AdjustColours" to add my new custom colour.Using this colour I change the background of my bitmap & the colour is changed. Now When I run my application the customcolour which I added is not displayed in the bitmap as background. Iam using this bitmap as an image in my CTreeCtrl,which is created at runtime. I have my CTreeclass: public CTreeCtrl In the OnInitDialog,I do as follows: m_ImageList.Create(IDB_MRO_IMAGELIST, 16, 1, RGB(255, 255, 255))) m_wndTree.SetImageList(&m_ImageList, TVSIL_NORMAL); //m_wndTree is my class derived from CtreeCtrl Thanks...
Did you load correct palette before you started adjusting color? If not load pallete. Menu/Image/Load palette. You need to find file *.pal which has 256 color. After you load it you will see all 256 color. The rest you doing correct. VS6 may not show all 256 colors but I am no sure. sorry if misslead you. :)
-
Did you load correct palette before you started adjusting color? If not load pallete. Menu/Image/Load palette. You need to find file *.pal which has 256 color. After you load it you will see all 256 color. The rest you doing correct. VS6 may not show all 256 colors but I am no sure. sorry if misslead you. :)