Path: utzoo!attcan!uunet!sbi!zeus!cf_su10!cf_su20!nee From: nee@cf_su20.Salomon.Com (Robert Nee) Newsgroups: comp.windows.ms.programmer Subject: Reading icon files and CreateIcon Message-ID: <155@cf_su20.cf_su10.Sbi.COM> Date: 23 Jan 91 18:31:00 GMT Sender: news@cf_su10.Sbi.COM Reply-To: nee@cf_su20.Salomon.Com (Robert Nee) Organization: Salomon Brothers, NY Lines: 20 I have been trying for some time to write a routine that will read an icon (.ICO) file and use CreateIcon to make an icon on the fly. This routine is supposed to return a handle to an icon. I have the SDK docs and read all about the file format of the .ICO file. My routine seems to read the file fine. And inspection with CV seems to indicate that I am reading the file correctly. The problem I feel is with my call to CreateIcon. The call returns a handle to an icon but the icon looks scrambled when displayed. Has anyone been able to use the CreateIcon call with success? Has anyone been able to successfully read .ico files and know of some pitfalls I should be aware of? I would appreciate any help very much. Thank You. Robert F. Nee