Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm writing a program in c++ using CodeGear platform. I have an icon in my application but when I load it after I hide my first form the icon from taskbar disappears.

Can someone help my how to fix this?

Thanks
Posted
Updated 3-Apr-11 20:58pm
v2

1 solution

You have to set the icon for each top level window you show:

SendMessage(hWnd,WM_SETICON,ICON_BIG,(LPARAM)LoadIcon(GetModuleHandle(0),MAKEINTRESOURCE(IDI_APPICON)));


Regards.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900