Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!rutgers!mcdchg!chinet!patrickd From: patrickd@chinet.chi.il.us (Patrick Deupree) Newsgroups: comp.windows.ms Subject: Re: Icons for non Windows Application Keywords: Changing the icon Message-ID: <1990Jul24.150024.4004@chinet.chi.il.us> Date: 24 Jul 90 15:00:24 GMT References: <1605@peyote.cactus.org> Organization: The Whitewater Group, Evanston, IL Lines: 18 In article <1605@peyote.cactus.org> woan@peyote.cactus.org (Ronald S. Woan) writes: }I understand how to define an icon for a non-Windows application }under the program manager with the properties option, but how }do you set the icon for a running application, i.e. the icon used }when you iconisize an application that has been running (I don't }mean doing this dynamically)? The icon for a running application is set when the main window is registered. In order to set this, as a programmer, you must put the handle to that icon in the proper field of the window registration structure. In order to do this dynamically you might be able to run a windows program that will search for your window (e.g. by the caption text) and use the SetWindowWord function to reset the icon handle. -- "Organized fandom is composed of a bunch of nitpickers with a thing for trivial pursuit." -Harlan Ellison Patrick Deupree -> patrickd@chinet.chi.il.us