
Creation failure with CImageList.....What the...???
Yo,
Its weird, I can't get it.
My app have 2 PropertyPages.
In each, I create a CImageList. The first works fine but the other get an
assert error caused by the creation failure of CImageList.
Each have the same includes and the same Init...
In fact, I almost copy/pasted eveything from the first prop.page.
////////////////////////
// PropertyPage
// from OnInitDialog( )
CImageList ListImg;
ListImg.Create(IDB_BITMAP, 16, 1, (COLORREF) RGB(0,0,255));
ASSERT(ListImg);
// ASSERT error with Property Page 2
m_index.SetImageList(&ListImg, LVSIL_SMALL);
Whats happened?
Eric Tremblay
QA-International