
VB image list handle isn't fully accessible in VC++ ActiveX thru COM call
Quote:
>I got the situation that the passed imagelist's handle from VB6 can't be
>treated in ActiveX control. Pointer is valid, seems everything is Ok but an
>attempt to assign the handle to internal ActiveX's imagelist do nothing,
>meaning that the some wrapper class (i.e. CImageList) cannot recognize (to
>treat) images which this handle really point on.
There's a know issue that occurs on Windows XP, where imagelist
handles from the VB6 ImageList control (in Mscomctl.ocx) don't work
with the ImageList_ APIs (or wrapper classes such as CImageList). The
easiest workaround is to switch to Comctl32.ocx.
Mattias
===
Mattias Sj?gren (VB MVP)
http://www.msjogren.net/dotnet/