如何将位图从文件放到控件上的特定位置 [英] How to put a bitmap from a file to a particular location on a control

查看:79
本文介绍了如何将位图从文件放到控件上的特定位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我有一个要求,我需要从一个位置加载位图(位图位于机器的其他位置,即不是项目)并将其显示在列表控件上的特定位置。

我有矩形的坐标,我需要放置位图。

如何我可以这样做吗?

提前谢谢

Hi all ,

I have a requirement where I need to load a bitmap from a location (the bitmap is located elsewhere in the machine ie not a part of the project) and to display it at a particular location on a list control .
I have the co-ordinates of the rectangle where I need to place the bitmap.
How can I do this ?
Thanks in advance

推荐答案

一个很好的教程:

http://www.ucancode.net/VC_Library_Control_Tool/VC_MFC_Totorial_CListCtrl_InsertItem_SetImageList_Article.htm [ ^ ]
A good tutorial:
http://www.ucancode.net/VC_Library_Control_Tool/VC_MFC_Totorial_CListCtrl_InsertItem_SetImageList_Article.htm[^]


您可以使用 HTT ps://msdn.microsoft.com/en-us/library/windows/desktop/dd183370(v = vs.85).aspx [ ^ ]或 https://msdn.microsoft.com/en-us/library/wc99t364.aspx [ ^ ]。
You could use https://msdn.microsoft.com/en-us/library/windows/desktop/dd183370(v=vs.85).aspx[^] or https://msdn.microsoft.com/en-us/library/wc99t364.aspx[^].


这篇关于如何将位图从文件放到控件上的特定位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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