Exemplo n.º 1
0
 void ImageList::replace ( const Icon& image, int index )
 {
     const ::BOOL result = ImageList_ReplaceIcon(
         handle(), index, image.handle()
         );
     if ( result == FALSE ) {
         UNCHECKED_WIN32C_ERROR(ImageList_ReplaceIcon,0);
     }
 }
Exemplo n.º 2
0
 int ImageList::add ( const Icon& image )
 {
     const int result = ImageList_AddIcon(
         handle(), image.handle()
         );
     if ( result == -1 ) {
         UNCHECKED_WIN32C_ERROR(ImageList_AddIcon,0);
     }
     return (result);
 }