ImageList_Read & ImageList_Write functions...
-
Hi, I need those 2 functions : ImageList_Read & ImageList_Write functions... It seems they already exist in comcntl32 . More of this I’ve found this code : In Winctrl2.cpp #ifndef _AFX_NO_OLE_SUPPORT extern "C" { HIMAGELIST WINAPI ImageList_Read(LPSTREAM pstm); BOOL WINAPI ImageList_Write(HIMAGELIST himl, LPSTREAM pstm); } #endif … BOOL CImageList::Write(CArchive* pArchive) BOOL CImageList::Read(CArchive* pArchive) This is what I need but I’m unable to use it because it is in a #ifndef _AFX_NO_OLE_SUPPORT compilation condition. So, I don’t know how I can access it. What is the #ifndef _AFX_NO_OLE_SUPPORT for? Where does it come from? I really need ImageList_Read & ImageList_Write or BOOL CImageList::Write(CArchive* pArchive), BOOL CImageList::Read(CArchive* pArchive) Can anybody help me please? Is there a sample project somewhere that uses the ImageList_Read & ImageList_Write functions? Thank you very much in advance. Best regards Guy LECOMTE