Solved

Application Icon

Posted on 1998-04-26
5
272 Views
Last Modified: 2013-11-19
How do I control the icon that the explorer initially choses to display next to my application?  I have three or four embedded icons in the app, and the explorer picks the second one for some reason.  It uses a different (correct) one in the application caption bar, as well as for registered document types of the application.  But how can I control the application's .exe  icon in the explorer?  Thanks!
0
Comment
Question by:krw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 10

Accepted Solution

by:
RONSLOW earned 20 total points
ID: 1302662
Answer coming .. regarding icons etc.

0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 1302663
AS far as explorer is concerned, you can pick whatever icon you want for a shortcut .. either from the application itself or from elsewhere.

If you have an AppWizard generated MFC program, then the icon for IDR_MAINFRAME (for MDI/SDI) gives you the application icon

There is also a second icon defined for the document type.

Your problem may be that you have totally diferent icon images for diffrent icon sizes.  Icons simulatneously hold multiple images at various sizes.  The system picks the best size for what it required (eg. desktop icon, taskbar icon etc) and uses that (scaling approriately).  Perhaps you have change the icon bitmap for ONE image size, but not for ALL of them, so it looks like the wrong icon is being displayed.
 
0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 1302664
By default, the first icon in your resource file will be the application icon (IDR_MAINFRAME), and the second will be the document icon (eg. IDR_xxxTYPE)

0
 

Author Comment

by:krw
ID: 1302665
I manually edited the rc and moved the desired icon first in the list, and that did the trick.  Thanks!
0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 1302666
You're welcome.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Add content to output file 4 72
Perl Awk Need Help 3 145
method notes when mouse over in eclipse 5 94
canBalance challenge 34 109
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question