Program icon???
Lets say I have an icon file "icon1.ico". How do I make this the icon for a program in MSV C++? Does this have to be specified in the project or can I do it strictly in the code?
Do you load the icon with your window class?
wndclass.hIcon = LoadIcon(GetModuleHandle(NULL),MAKEINTRESOURCE(ICON_1));
[edited by - stooge_dev on August 16, 2003 5:22:31 PM]
wndclass.hIcon = LoadIcon(GetModuleHandle(NULL),MAKEINTRESOURCE(ICON_1));
[edited by - stooge_dev on August 16, 2003 5:22:31 PM]
Noods:
The part stooge_dev forgot to tell you was that you have to set ICON_1
Set which icon to use like the following:
ICON_1 ICON DISCARDABLE "MyGame.ico"
then do
wndclass.hIcon = LoadIcon(GetModuleHandle(NULL),MAKEINTRESOURCE(ICON_1));
The part stooge_dev forgot to tell you was that you have to set ICON_1
Set which icon to use like the following:
ICON_1 ICON DISCARDABLE "MyGame.ico"
then do
wndclass.hIcon = LoadIcon(GetModuleHandle(NULL),MAKEINTRESOURCE(ICON_1));
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement