Thread: how to make icons

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    157

    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.

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    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");
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    157
    okay so i can just use paint to make these icons?

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    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?
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  5. #5
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    Nope. But lccwin32 has one.

  6. #6
    Registered User
    Join Date
    Nov 2002
    Posts
    157
    golfinguy, what do you use to make icons?

  7. #7
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    lccwin32 has an icon editor. For all of my visual editing (dialog designer, icon designer, ect.), I use the resources included in lccwin32.

  8. #8
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    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.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  9. #9
    Registered User
    Join Date
    Nov 2002
    Posts
    157
    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?

  10. #10
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to make a Packet sniffer/filter?
    By shown in forum C++ Programming
    Replies: 2
    Last Post: 02-22-2009, 09:51 PM
  2. HELP!wanting to make full screen game windowed
    By rented in forum Game Programming
    Replies: 3
    Last Post: 06-11-2004, 04:19 AM
  3. make all rule
    By duffy in forum C Programming
    Replies: 9
    Last Post: 09-11-2003, 01:05 PM
  4. Question about atheists
    By gcn_zelda in forum A Brief History of Cprogramming.com
    Replies: 160
    Last Post: 08-11-2003, 11:50 AM
  5. Replies: 6
    Last Post: 04-20-2002, 06:35 PM