Click here to Skip to main content
15,918,109 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
By setting a window's parent to the desktop (and resizing), the window will be shown in full screen mode. A parentless window like that has an automatic taskbar button without text and the main application icon. I can add text to the btton by using SetWindowText(), but I cannot change the taskbar button icon.
SetIcon() does not seem to do anything.

Any advice?
Posted
Updated 22-Dec-09 3:33am
v2

Do you want to add an icon to the window's "button" when minimized in the taskbar ?
Which VS Version are you using ?
 
Share this answer
 
>Do you want to add an icon to the window's "button" when minimized in the taskbar ?
>Which VS Version are you using ?

I'd like to add the icon both when not minimized and when minimized. I assume that once I set the icon, it will be the same for both. The problem is the multiple monitors. If I had one monitor, then, obviously, the full screen window will hide the taskbar and I will not need the icon. When more than one screen are involved, the full screen window on the secondary screen has a taskbar button in the main screen. (This applies to my method of making a window full screen. It is always possible that a different method will be better. I've tried to resize the frame beyond the size of the screen, but, because I use multiple monitors, the edge of the frame window leaks over to the other monitor.)

I'm using VS2008.

Thanks,
Gil
 
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