问题
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