Advertisement

Using Icons/ .RC resources

Started by July 08, 2000 12:01 PM
1 comment, last by Zeke 24 years, 5 months ago
I have a window class winclass. For winclass.hIcon and winclass.hIconSm I want to use a custom icon so I need to include the icon in a .rc file how do I do this? If i try to add a resource script in Visual C++ 6 it shows me a folder and I am unable to type anything in like My_Icon ICON Icon.ICO so I cant load the icon using winclass.hIcon = LoadIcon(hinstance, "My_ICON"); Can you understand what I am trying to ask (i know this sounds confusing)? I would appreciate any help on this subject Thanks
Just my thoughts take them as you will. "People spend too much time thinking about the past, whatever else it is, its gone"-Mel Gibson, Man Without A Face
Put this in the ".rc" file:

MY_ICON ICON "myicon.ico"

Use like this when creating your window:

wc.hIcon = LoadIcon(hinstance, "MY_ICON");


I hope that helps.




Edited by - The_C_Guy on July 9, 2000 6:40:35 AM
http://www.crosswinds.net/~druidgames/resist.jpg
Advertisement
Thanks C_Guy I got it working now. Appreciate the help!

Just my thoughts take them as you will. "People spend too much time thinking about the past, whatever else it is, its gone"-Mel Gibson, Man Without A Face

This topic is closed to new replies.

Advertisement