Path: utzoo!news-server.csri.toronto.edu!rutgers!dimacs.rutgers.edu!mips!sjsca4!poffen From: poffen@sj.ate.slb.com (Russ Poffenberger) Newsgroups: comp.windows.ms Subject: Re: Non-Windows Apps Icons (Why do they change?) Message-ID: <1991Mar14.005119.22489@sj.ate.slb.com> Date: 14 Mar 91 00:51:19 GMT References: <1991Mar12.165438.12792@cbnewsk.att.com> <20339553@bfmny0.BFM.COM> Reply-To: poffen@SunOS (Russ Poffenberger) Distribution: usa Organization: Schlumberger Technologies, ATE division, San Jose, Ca. Lines: 32 In article <20339553@bfmny0.BFM.COM> tneff@bfmny0.BFM.COM (Tom Neff) writes: >In article <1991Mar12.165438.12792@cbnewsk.att.com> konopka@cbnewsk.att.com (raymond.konopka..jr) writes: >>I have a number of Non-Windows apps installed in the Non-Win Apps >>group under program manager in Win 3.0. I have used the >>ICONDRAW.EXE program to create Icons for these programs. >>The problem that I have been experiencing is this: The icons come up >>fine in the Non-Win Apps Window, but if I run one of these applications >>in a window (I am in 386 enhanced), and then reduce the window to >>an icon, the icon changes to the DOS icon provided by Windows 3.0. >> >>Is there any way to force windows to use the icon that I created? > >This is an incredibly frequently asked question. > >The answer is no. When you tell Program Manager to use a special icon >file for a program item in one of its groups, that is ALL you have done: >told Program Manager. When an application is iconized onto the Desktop, >Progman is out of the loop. The Windows iconizer only knows to look in >the .EXE file for an icon. All DosApps get the DOS icon. Actually you must set the icon by setting the class icon when you register the class in a windows application. You can use the standard IDI_APPLICATION icon, but this is just a little blank box with a border. You would have to load the icon from one built into the resource to get a different one. Of course this only applies to windows apps. Russ Poffenberger DOMAIN: poffen@sj.ate.slb.com Schlumberger Technologies UUCP: {uunet,decwrl,amdahl}!sjsca4!poffen 1601 Technology Drive CIS: 72401,276 San Jose, Ca. 95110 (408)437-5254