Solved

Application Icon

Posted on 1998-04-26
5
256 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
notReplace  challenge 53 131
while loop over for loop 7 104
isEverywhere  challenge 19 77
matchUp  challenge 9 110
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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

803 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