Advertisement

Loaing a different icon in Nehe tutorials

Started by November 30, 2001 06:03 PM
3 comments, last by zeotron 23 years, 2 months ago
How do i load a different icon in the
wc.hIcon= LoadIcon(NULL, IDI_WINLOGO); // Load The Default Icon 
funtion?
A moment enjoyed is not wasted. -Gamers.com
Diff logos will go in that second spot, ummmm i dont know them all, but i know there is a way to ahve it search for a logo, given you tell it where its at. If that makes any sense...
Advertisement
Bundle the icon you want as a resource, then call it like

LoadIcon(hInstance, "ICON1");

If ICON1 is what you named your icon.
Thanks guys. Now, another question. How do I change the icon in the top left coner of a window?
A moment enjoyed is not wasted. -Gamers.com
There is another parameter called wc.hIconSm. It uses the same format as wc.hIcon, but this one is for the title bar of the window and the icon on the taskbar.

wc.hIconSm = LoadIcon( hInstance, "iconname" );

This topic is closed to new replies.

Advertisement