■ ImageList 클래스에서 이미지를 추가하는 방법을 보여준다.
▶ 예제 코드 (VB)
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Dim pEarthPicture As Picture Dim pPlanePicture As Picture Dim pRocketPicture As Picture Set pEarthPicture = LoadPicture("c:\earth.ico") Set pPlanePicture = LoadPicture("c:\plane.ico") Set pRocketPicture = LoadPicture("c:\rocket.ico") pImageList.ListImages.Add 1, "Image1", pEarthPicture pImageList.ListImages.Add 2, "Image2", pPlanePicture pImageList.ListImages.Add 3, "Image3", pRocketPicture |