Thanks for your reply. The function Create is a MFC function but I am working with ATL. There is not similar overload in ATL for Create. Any idea how to do that in ATL? Thanks a lot.
Quote Originally Posted by MrViggy
It looks like there's an overload for Create that might do just that:
Code:
BOOL Create(
   CImageList& imagelist1,
   int nImage1,
   CImageList& imagelist2,
   int nImage2,
   int dx,
   int dy 
);
Check out the MSDN:
http://msdn.microsoft.com/library/de...a3a.create.asp

Viggy