Solved

Application Icon

Posted on 1998-04-26
5
270 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
  • 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.

685 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