如何在visual studio 2005上添加/导入图标(.ico)图像 [英] How ot add/Import icon(.ico) image on the visual studio 2005

查看:190
本文介绍了如何在visual studio 2005上添加/导入图标(.ico)图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想在我的应用程序中添加一个图像(在Visual Studio 2005中),现在它显示MFC符号,我想用一些替换它其他图标。



我尝试了资源视图ICON选项,当我右键单击鼠标时没有像import这样的选项。



如果有人知道怎么做,请告诉我....

Hi,

I want add a image to my application (In Visual studio 2005) , right now it's showing MFC symbol and I want to replace it by some other icon.

I tried on the resource view ICON option ,there no option like "import" when i am right clicking the mouse.

Pls let me know if anybody know how to do ....

推荐答案

请参阅MSDN

http://msdn.microsoft.com/en-us/ library / 3bka19x4%28v = vs.90%29.aspx [ ^ ]
Please refer to MSDN
http://msdn.microsoft.com/en-us/library/3bka19x4%28v=vs.90%29.aspx[^]


将您要设置的图标保存为app.ico。然后在应用程序源的资源文件中,将此行添加为第一行。

Save the icon you want to set to your application as "app.ico". Then in the resource file of your application source, add this line as the first line.
IDI_MAIN       ICON         "app.ico"



注意:不要删除资源文件中的任何行,只需添加此行即可。这条线应该是您的资源文件的第一行(.rc)。


Note: Don't delete any line in the resource file, just add this line. THIS LINE SHOULD BE THE FIRST LINE OF YOUR RESOURCE FILE(.rc).


这篇关于如何在visual studio 2005上添加/导入图标(.ico)图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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