Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Icons colour
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00496500
Message ID:
00498958
Views:
15
Mike and Garrett,

First, thanks for the info. In the overall scheme of things, in my view, this is NBD. However, it's has aroused my curiousity, and that's the only reason I'm pursuing it.

Second, I think I didn't do a very good job in explaining what I did, and what the results were. So I hope you don't mind my "re-hashing" my actions for the sake of clarity.

I built a "Hello World" application in VC++ 6.0 using the wizard. The wizard inserted a both large and small icon as separate files. In both the Windows Explorer and on the desktop shortcut, the icons appeared as they should. When I brought up the shortcut's properties dialog and selected the "Change Icon" dialog, both the icons appeared.

I then modified the VC++ project, removing the icons and replacing them with a single icon file containing a 256 color 32x32 icon and a 16 color 16x16 icon. I then re-booted the machine. The shortcut's icon remained the same. The small icon was visible in the Window's Explorer. The only difference was that instead of both icons appearing the the icon selection dialog from the property dialog, only the large one apppear.

In VFP 7.0 (Beta 1) I recompiled a project with the 256 and 16 color icon file indicated. The Windows Explorer shows the small icon. However, the shortcut and the icon selection dialog only show the Fox head and not the 256 color icon. Since the Explorer shows the correct icon, I'd assume that the file is included in the file.

Additionally, I used two tools to check the files. One, a freeware product called "IconSucker" only showed the Fox. The other, which I created, shows the same. Additionally, my work displays the number of icons in the file, utilizing ExtractIcon() to retrieve the total number of icons, and to retrieve a handle for use by DrawIcon() to display it. Again, only the Fox appears.

So to sum up, the problem doesn't appear in the Windows Explorer, but rather with the desktop icon, and I'm clueless as to why. Could this be the subject of a KB article?
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform