Solved

Change Icon in MDI Application

Posted on 1998-01-19
2
245 Views
Last Modified: 2013-11-20
Hi There,

I made a multi-session ftp application.
I made a change icon mainframe window and MDIChildFrame
window. But, In Windows Explorer, I found my application's icon that does not changed.
How can I change icon?  Please Help me!!
Also, I tried to change icon with AFX_IDI_STD_FRAME, AFX_IDI_MDIFRAME and IDR_MAINFRAME resource id.
But, they does't work for me.

TIA
0
Comment
Question by:cyhrjocyh
2 Comments
 
LVL 7

Accepted Solution

by:
galkin earned 100 total points
ID: 1314359
What touches upon your application itself(EXE file) that Windows Explorer extracts default icon with from EXE. In addition it extract icon of appropriate size(32x32 or 16x16) according to the current screen mode. You are recommended to supply icons of both sizes. If any of these icons unavailable shell stretches what it can extract. What you can change is icon for your application associated files( like .doc files for MS Word). Each application must register its file types in regsitry. For instance MS Word application file extension is .doc file and it creates key .doc under HKEY_CLASSES_ROOT. This key has several subkeys and default value(with my version of Word it is  "Word.Document.6". Now there is key Word.Document.6 under the same root key HKEY_CLASSES_ROOT. This key has subkey DefaultIcon which in turn has only one default value - full path name to the file containing icon and icon number separated by comma. If you want to change this icon you can change ither file(rearly) and/or icon number(often). Of cause the file must contain icon number it is refered to. Windows Explorer allows you to change icon file and icon number through file properties dialog and "Change Icon" button.
0
 

Author Comment

by:cyhrjocyh
ID: 1314360
Special thanks to galkin.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Named range not carried over 10 57
Unix Command -- Challenging  question 7 79
wordmultiple challenge 12 90
Path of Workbook 3 45
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: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

757 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

21 Experts available now in Live!

Get 1:1 Help Now