Solved

Change Icon in MDI Application

Posted on 1998-01-19
2
255 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Add content to output file 4 72
ORA-01403: no data found 43 116
Process filename extension 3 218
Complete beginner needs help making a cron job 9 133
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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

734 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