Solved

Application Icon

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Running shell command from Access 3 68
Expand macro to ask for filename column 8 37
iSeries DB2 Query 2 90
isEverywhere  challenge 19 72
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: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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 video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

914 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

20 Experts available now in Live!

Get 1:1 Help Now