使用CFileDialog类在列表控件中显示图像 [英] Displaying image in an listcontrol by using CFileDialog class

查看:76
本文介绍了使用CFileDialog类在列表控件中显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我正在尝试通过usinf CFileDialog类打开系统打开对话框,我想在列表控件中显示图像,该图像是从该打开对话框中选择的.我能够获取所选图像的文件名,我尝试通过使用LoadIcon将其添加到图像列表中,但是它不起作用.谁能帮我...

Hi I am trying to open the system open dialog box by usinf CFileDialog class and i wanna display the image in my listcontrol,which(image) is selected from that open dialog box. I am able to get the file name of the selected image and i tried to Add it to the imagelist by using LoadIcon butit doesnt works. can anyone help me......

推荐答案

看看那些文章:

在这里,您将看到如何从图像列表更新图像.

http://msdn.microsoft.com/en-us/library/hfshke78 (v = vs.80).aspx [ http://msdn.microsoft.com/en-us/library/f3wdxcd3 (v = vs.80).aspx [ http://support.microsoft.com/kb/141834 [
Take a look at those articles:

Here you will see how to update images from imagelists.

http://msdn.microsoft.com/en-us/library/hfshke78(v=vs.80).aspx[^]
http://msdn.microsoft.com/en-us/library/f3wdxcd3(v=vs.80).aspx[^]
http://support.microsoft.com/kb/141834[^]

After that you will only need to create/modify the right imagelist for your CListCtrl.

HTH...


这篇关于使用CFileDialog类在列表控件中显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆