-
how to make icons
since i'm using dev-c++ (v4) i dont have the convenient icon dev environment as of msvc++ and i was just looking for a way to make respectable looking icons for my apps (as well as cursors). aren't icons just bitmaps? what do i need to do with them to incorporate them into my apps?
thanks.
-
You can create your own icons and cursors with any suitable image editor. The small icon is 16x16 the large 32x32. Add them to your resource file as...
MyNewIcon ICON ICON.ICO // or whatever name you have given it
To load it, use the LoadIcon() API routine when you initialise your window class...
WindClass.hIcon = LoadIcon(hThisInst, "MyNewIcon");
-
okay so i can just use paint to make these icons?
-
No. An icon file can, and frequently does contain more than one bitmap. Look at the description of the .ico file type here www.wotsit.org you'll either need an image editor that supports icon editing or build the file yourself to the specification. Does the Dev-C++ IDE not have an icon editor in it?
-
Nope. But lccwin32 has one.
-
golfinguy, what do you use to make icons?
-
lccwin32 has an icon editor. For all of my visual editing (dialog designer, icon designer, ect.), I use the resources included in lccwin32.
-
You didn't ask, but I'll tell you anyway, I use the icon editor included in the VC++ IDE. That is why I asked if you didn't already have one - it would seem to be a pretty fundemental thing to have in an IDE.
-
golfinguy, do you recommend that i write code and work with the API with two ides and editors to do different tasks? wouldn't that get a little confusing?
-
Personally, I just open the correct .exe that I want to use. They are all located in the bin folder of lccwin32. From there, I either copy the code (for a dialog) or move the icon to the correct location. From there, in your resource script, it is pretty easy to make that icon your program's icon.