identify big or small icon from HICON???

small iocn 16*16
big icon 32*32

SHFILEINFO shFileInfoBig;
memset( &shFileInfoBig,NULL,sizeof(shFileInfoBig) );
SHGetFileInfo( L"XXabc.lnk",
FILE_ATTRIBUTE_NORMAL,
&shFileInfoBig, sizeof(SHFILEINFO),
SHGFI_USEFILEATTRIBUTES
|SHGFI_ICON| SHGFI_LARGEICON );
m_myImageListBig.Add(shFileInfoBig.hIcon);
DestroyIcon(shFileInfo.hIcon);

I want get the big icon handle from shFileInfoBig.hIcon.
However ,I just get the small icon handle because "XXabc.lnk"only have the small icon.
The function SHGetFileInfo() still work well though the file "XXabc.lnk"only have the small icon.
My question is :1. Is it possible to make sure the icon's size
from HICON(shFileInfoBig.hIcon)?
2.If not ,Is it possible to identiyfy wheather
the icon is big icon or small icon
from HICON attach to a flie(.lnk)?

Thanks

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories