I am using a tree from CTreeCtrl.
To create the imagelist I am using a bitmap with 256 colours.
But the icons in my tree only appear with 16 colours.
What is supposed to do to have icons with 256 colours in tree?
This is my code:
-------------------------------------------------------------
CTreeCtrl& lcl_tree = GetTreeCtrl();
CImageList icl_listaImagem;
icl_listaImagem.Create( IDB_BITMAP_VECTOR_IMAGEM256, 17, 1, RGB(5,255,5) );
lcl_tree.SetImageList(&icl_listaImagem, TVSIL_NORMAL);
// Set tree control styles
long style = GetWindowLong(lcl_tree.m_hWnd,GWL_STYLE);
style |= (TVS_HASLINES | TVS_LINESATROOT | TVS_HASBUTTONS |
TVS_SHOWSELALWAYS | TVS_DISABLEDRAGDROP);
SetWindowLong(lcl_tree.m_hWnd,GWL_STYLE,style);
// Insert some items
HTREEITEM lcl_auxItem;
HTREEITEM lcl_vaultItem = lcl_tree.InsertItem("Teste...", 1, 1 );
-------------------------------------------------------------
Thanks & Regards,
Rui Oliveira