PRB: Listview Comes Up with No Images
Article ID: 125628
Article Last Modified on 3/7/2005
APPLIES TO
- Microsoft Windows NT Server 3.51
- Microsoft Windows NT Workstation 3.51
- Microsoft Windows 95
This article was previously published under Q125628
SYMPTOMS
A list view is displayed with text and column headings, but the icons
are not displayed.
CAUSE
The CImageList used to store the images for the list view is no longer in
scope.
RESOLUTION
This can occur, for example, if you create a CImageList on the stack and
create your listview, but at the point the listview is displayed, the
image list has been destroyed. The ImageList functions will still return
success, but no images will be displayed.
To avoid the problem, make sure your image list stays in scope.
STATUS
This behavior is by design.
Keywords: kbprb KB125628