Solved

Application Icon

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
repeatEnd java challenge 42 83
Expand data scrubbing tool 13 31
while loop over for loop 7 79
haveThree challenge 22 100
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now