Anyone got SHGetFileInfo with Windows CE
Article Writing
1
Posts
1
Posters
1
Views
1
Watching
-
Hi all. Has anyone got an example of using SHGetFileInfo to access the system imagelist. No matter what I use it keeps return an imagelist with nothing in it.. Any examples floating aroung on how to do this The code I'm using is as follows : SHFILEINFO shFinfo; HIMAGELIST hImgList = NULL; hImgList = (HIMAGELIST)SHGetFileInfo( _T("Windows"), 0, &shFinfo,sizeof( shFinfo )*sizeof(TCHAR), SHGFI_SYSICONINDEX| SHGFI_SMALLICON ); if ( !hImgList ) { AfxMessageBox(_T("Cannot retrieve the Handle of System ImageList!")); return FALSE; } m_smallImageList.Attach(hImgList); All help extremely appreciated..