git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43785
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxImageList::RemoveAll()
{
// don't use ImageList_RemoveAll() because mingw32 headers don't have it
- int count = ImageList_GetImageCount(GetHImageList());
- for ( int i = 0; i < count; i++ )
- {
- // the image indexes are shifted, so we should always remove the first
- // one
- (void)Remove(0);
- }
-
- return true;
+ return Remove(-1);
}
// Draws the given image on a dc at the specified position.