Solved

Change Icon in MDI Application

Posted on 1998-01-19
2
251 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

830 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