Results 1 to 6 of 6

Thread: More than 1 icon in a program

  1. #1

    Thread Starter
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209

    More than 1 icon in a program

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    How do I get more than 1 icon in an exe, so the user can have 1 icon for the exe, and 1 for an associated document?

  2. #2
    Hyperactive Member Ed Lampman's Avatar
    Join Date
    Mar 2001
    Posts
    273
    If you use a Resource file in your .Exe, all the icons you place in it will be visible to the user when he selects "Change Icon" from the properties window for the file.

  3. #3

    Thread Starter
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    No it doesn't.
    It just makes them available to the program itself, not to explorer.

  4. #4
    Frenzied Member
    Join Date
    Mar 2001
    Location
    You are HERE •™
    Posts
    1,300
    I don't have an answer just another question. How would one use 2 different size(16x16, 32x32) icons for the exe. The 16x16 icon would be used in the caption, and the 32x32 icon would be used for a shortcut icon. I've seen this done in other progs....can't figure out how it's done.

  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    As for Bloodeye's question I made an Icon file with difference sizes in it (32x32x256,16x16x256) and made it the main form icon in my app and that worked. The app form had the 16x16 and the shortcut had 32x32. I used C++ to make the icon.

  6. #6
    Fanatic Member Kaverin's Avatar
    Join Date
    Oct 2000
    Posts
    930
    eiSecure, I placed some icons into a res file and added it to a dummy project, and compiled it, and when I make a shortcut to the exe, I can select the other icons through explorer. I don't know what you may have done, unless you're just saying no without checking it out yourself. I did notice it doesn't seem to like anything other than 16 color icons though, as my 256 color ones that I tested were screwed up. They turned out as a gray toned mess that looked grainy.

    Bloodeye and Edneeis, I'm sure you've seen this anyway, but if you don't give it a 16x16 icon, the system makes one from the 32x32 one that it has already.
    Last edited by Kaverin; Aug 1st, 2001 at 01:18 AM.
    I'm baaaack...
    VB5 Professional Edition, VC++ 6
    Using a 1 gHz Thunderbird, 256 mb RAM, 40 gb HD system with Win98se

    I feel special because I finally figured out how to loop midis: Post link
    I'm a fanatic too

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width