With 64k colors in Win95 the CListCtrl and CTreeCtrl Icons don't appear 
Author Message
 With 64k colors in Win95 the CListCtrl and CTreeCtrl Icons don't appear

Quote:

> Using the classes CListCtrl and CTreeCtrl in VC++ 4.1 under Win95 64k
> colors the list are composed only by the name of the item. I cannot see the
> icons.
> I tried with S3 and Matrox graphics card.
> With others operating system (NT, 3.11 32s) all right.

Guarda se ti soddisfa questo:

  // Imposta lo stile dell'albero
   tree.SetNewStyle(TVS_HASBUTTONS) ;
   tree.SetNewStyle(TVS_HASLINES) ;
   tree.SetNewStyle(TVS_LINESATROOT) ;
   tree.SetNewStyle(TVS_SHOWSELALWAYS) ;

  // Crea la lista di immagini
   pimagelist = new CImageList();
   pimagelist->Create(16, 16, TRUE, 6, 4);

  // Carica le immagini
   for (nID = IDB_BMTREEFIRST; nID <= IDB_BMTREELAST; nID++) {
      bitmap.LoadBitmap(nID);
      pimagelist->Add(&bitmap, (COLORREF)0xFFFFFF);
      bitmap.DeleteObject();
   }
   tree.SetImageList(pimagelist, TVSIL_NORMAL);

perche' ho provato e da me non crea problemi i 64K con S3 e W95.

Ciao

+--------------------------------------------------------------------+
| Riccardo Vescovi                              Tel : +39 35 697011  |
| Eutron spa                                    Fax : +39 35 697090  |
| Via Gandhi 12                                 BBS : +39 35 697096  |

+--------------------------------------------------------------------+



Sun, 30 May 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. I don't want 16 color icon, I want (24bit) FULL COLOR icon

2. Tool Tips Don't Appear in Win95

3. CImageList, CListCtrl == icons don't show in list

4. Link Errors in VC.net that don't appear in VC 6.0

5. ATL functions don't appear in profiler output

6. New classes don't appear on the ClassView tab

7. ATL functions don't appear in profiler output

8. strings don't appear in CComboBox.

9. ATL functions don't appear in profiler output

10. strings don't appear in CComboBox.

11. Windows don't appear until someone presses the ALT Key

12. Why don't my message boxes appear?

 

 
Powered by phpBB® Forum Software