d00_ape Posted September 10, 2004 Share Posted September 10, 2004 Look at this: CImageList *m_pimagelist = new CImageList(); m_pimagelist->Create( 16, 16, ILC_COLOR8, 0, 4); HICON icon = AfxGetApp()->LoadIcon( IDI_ICON1 ); if( icon == NULL ) ; // This Doesn?t happen int ret = m_pimagelist->Add( icon ); ret = m_pimagelist->Add( icon ); ret = m_pimagelist->Add( icon ); int count = m_pimagelist->GetImageCount(); // count is now correctly == 3 // So far so good SetImageList( m_pimagelist, TVSIL_NORML ); CImageList *p = GetImageList(TVSIL_NORML); if( p == NULL ) ; // THIS HAPPENS!! How come that ?SetImageList( m_pimagelist, TVSIL_NORML )? Doesn?t work? All suggestions are welcomed!! Link to comment Share on other sites More sharing options...
0 WinCC Posted September 10, 2004 Share Posted September 10, 2004 Shouldn?t it be TVSIL_NORMAL instead of TVSIL_NORML ?? Link to comment Share on other sites More sharing options...
Question
d00_ape
Look at this:
How come that ?SetImageList( m_pimagelist, TVSIL_NORML )? Doesn?t work?
All suggestions are welcomed!!
Link to comment
Share on other sites
1 answer to this question
Recommended Posts