如何在listview中显示缩略图,就像explorer一样?

时间:2023-01-17 10:04:19

could you please point c++ code example to display videos and images thumbnails in listview?

你能指点c ++代码示例在listview中显示视频和图像缩略图吗?

1 个解决方案

#1


3  

I can help with images, but not videos:

我可以帮助处理图片,但不支持视频:

http://www.codeproject.com/KB/GDI-plus/GdiPThumbnailsViewer.aspx

Basically you use a normal list control and add the images to an associated image list. There are some gotchas though - looks like you have to use the CImageView::ReplaceImage instead of CImageView::AddImage, else the images don't appear correctly. Masking the image may also require some work.

基本上,您使用普通列表控件并将图像添加到关联的图像列表。虽然有一些问题 - 看起来你必须使用CImageView :: ReplaceImage而不是CImageView :: AddImage,否则图像不能正确显示。遮盖图像可能还需要一些工作。

#1


3  

I can help with images, but not videos:

我可以帮助处理图片,但不支持视频:

http://www.codeproject.com/KB/GDI-plus/GdiPThumbnailsViewer.aspx

Basically you use a normal list control and add the images to an associated image list. There are some gotchas though - looks like you have to use the CImageView::ReplaceImage instead of CImageView::AddImage, else the images don't appear correctly. Masking the image may also require some work.

基本上,您使用普通列表控件并将图像添加到关联的图像列表。虽然有一些问题 - 看起来你必须使用CImageView :: ReplaceImage而不是CImageView :: AddImage,否则图像不能正确显示。遮盖图像可能还需要一些工作。