Article View: comp.os.ms-windows.programmer.tools.mfc
Article #95document icon troubles
From: Jason
Date: Mon, 03 Jun 2002 19:48
Date: Mon, 03 Jun 2002 19:48
36 lines
2300 bytes
2300 bytes
I have an MFC app that creates several kinds of documents. Each of these documents has a different file extension. Each of these extensions are registered in the registry. The file type is then registered, and a default icon is specified as being in the executable, where all of my document icons are. For example, under HKEY_CLASSES_ROOT, I have .gci = GCK.Illustration then, GCK.Illustration DefaultIcon = "C:\Program Files\etc.",3 I think I've done everything right, but no matter what I put in the DefaultIcon fields, every different kind of document has the same icon. The icon that shows up is the application icon. If I mess around with the registry, I can get these document types to show document icons from other applications, but for some reason, my document icons don't work. I've examined the resources of the executable (the icons are there, and in the correct order), the path name is correct, etc. Here is my resource file: APPICON ICON DISCARDABLE "APPICON.ICO" IDR_GCC_ICON DISCARDABLE "GCKC.ICO" IDR_GCI_ICON DISCARDABLE "GCKI.ICO" MDIICON ICON DISCARDABLE "MDIICON.ICO" I've tried #defining numeric values for IDR_GCC_ICON & IDR_GCI_ICON, and I've tried it without numeric values defined. But nothing works. Any ideas?
Technical Details
Message-ID:
<10565783.0206031148.6258de@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1138df,45e3e8a00ca8fc9a,start X-Google-Attributes: gid1138df,public X-Google-Thread: fd047,45e3e8a00ca8fc9a,start X-Google-Attributes: gidfd047,public X-Google-Thread: 105df1,45e3e8a00ca8fc9a,start X-Google-Attributes: gid105df1,public X-Google-ArrivalTime: 2002-06-03 12:48:43 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail From: jbotwick@nc.rr.com (Jason) Newsgroups: comp.os.ms-windows.programmer.tools.mfc,codewarrior.windows,comp.os.ms-windows.programmer.misc Subject: document icon troubles Date: 3 Jun 2002 12:48:42 -0700 Organization: http://groups.google.com/ Lines: 36 Message-ID: <10565783.0206031148.6258de@posting.google.com> NNTP-Posting-Host: 216.136.12.34 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1023133722 26745 127.0.0.1 (3 Jun 2002 19:48:42 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 3 Jun 2002 19:48:42 GMT