•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 425,824 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,976 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 742 | Replies: 9
![]() |
•
•
Join Date: Nov 2006
Posts: 37
Reputation:
Rep Power: 2
Solved Threads: 0
How can I change my program's icon for anyone who uses the program? Obviously I would have to include the .ico file with it, but beyond that, I'm stumped.
=================================
There are 10 types of people in the world,
Those who understand binary, and those who don't
=================================
There are 10 types of people in the world,
Those who understand binary, and those who don't
=================================
•
•
Join Date: Oct 2007
Location: Cherry Hill, NJ
Posts: 1,876
Reputation:
Rep Power: 11
Solved Threads: 193
Typically the main icon is linked in at compilation. How exactly you do it depends on your compiler. In all cases, a Windows resource named MAINICON is in your exe.
You can also check out Resource Hacker, which you can use to manually change a program's icon.
You can also check out Resource Hacker, which you can use to manually change a program's icon.
•
•
Join Date: Oct 2007
Location: Cherry Hill, NJ
Posts: 1,876
Reputation:
Rep Power: 11
Solved Threads: 193
Its possible to do, ive never tried this but I think it should work.
CPP Syntax (Toggle Plain Text)
SendMessage(hwnd, WM_SETICON, ICON_SMALL, (LPARAM)LoadIcon(NULL, MAKEINTRESOURCE(ICON_ID)));
•
•
Join Date: Feb 2008
Location: Hyderabad,India
Posts: 17
Reputation:
Rep Power: 1
Solved Threads: 2
![]() |
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- change program icon (Windows NT / 2000 / XP / 2003)
- IE opens by itself!!! Homepage keeps changing!!HELP! (Viruses, Spyware and other Nasties)
- Changing windows icon on top right (Windows NT / 2000 / XP / 2003)
- Home page always changing (Viruses, Spyware and other Nasties)
- my home page keeps changing to "res://jxtgk.dll/index.html#37049" (Viruses, Spyware and other Nasties)
- changing desktop icons text colour (Windows NT / 2000 / XP / 2003)
- Icon and Thumbnail Display Problem (Windows NT / 2000 / XP / 2003)
Other Threads in the C++ Forum
- Previous Thread: Find then Show window.
- Next Thread: External/Internal Enumerations?



Linear Mode