How can i change another program icon?

ε祈祈猫儿з 提交于 2019-12-20 05:02:48

问题


How can i change another program icon(not mine) in C++ ? I want to do this on Windows. One of my friend is programming in VB and he made a program that can change another .exe icon. So how can i do that in C++ ?


回答1:


After preparing your updated resource (using LoadIcon/LoadImage, depending on where your icon is stored), go through the steps to call UpdateResource:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms648049%28v=VS.85%29.aspx

The documentation for the functions should cover the finer points of what you might need to do.



来源:https://stackoverflow.com/questions/7958810/how-can-i-change-another-program-icon

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!