CImageList imageList; imageList.Create(16, 16, ILC_COLOR32, 1, 1); //create image list CBitmap bitmap; bitmap.LoadBitmap(IDB_BITMAP1); //load bitmap resource int index = imageList.Add(&bitmap, RGB(255, 0, 0)); //add bitmap to image list with red color maskIn this example, the Create function is used to create an image list with a size of 16x16 pixels and a color depth of 32 bits. The LoadBitmap function is used to load a bitmap resource from the project's resources. Finally, the Add function is used to add the bitmap to the image list with a red color mask and the index of the added image is returned. The package library used in this example is the Microsoft Foundation Class (MFC) library which is included in the Microsoft Visual Studio IDE.