CImageList::Attach
Görüntü listesine eklemek için bu işlev çağrısı bir CImageList nesnesi.
BOOL Attach(
HIMAGELIST hImageList
);
Parametreler
- hImageList
Resim listesi nesnesi için tanıtıcı.
Dönüş Değeri
Eki başarılı olursa sıfırdan farklı; Aksi halde 0.
Örnek
void AddQuestion(HIMAGELIST hmyImageList)
{
CImageList imgList;
// Attach the image list handle to the CImageList object.
imgList.Attach(hmyImageList);
// Add a new icon to the image list.
imgList.Add(AfxGetApp()->LoadStandardIcon(IDI_QUESTION));
// Detach the handle from the CImageList object.
imgList.Detach();
}
Gereksinimler
Başlık: afxcmn.h