Solved

Change Icon in MDI Application

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

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
List out all word 7 261
pre4 challenge 19 94
sumHeights  challenge 17 66
Excel file not created as expected 7 51
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

867 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

18 Experts available now in Live!

Get 1:1 Help Now