Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!alexr@apple.com From: alexr@apple.com (Alexander M. Rosenberg) Newsgroups: comp.sys.mac.programmer Subject: Re: Excel 3.0 and the WindowList Message-ID: <13744@goofy.Apple.COM> Date: 30 May 91 01:31:15 GMT References: <13648@goofy.Apple.COM> <1991May29.162514.20304@mmm.serc.3m.com> Sender: usenet@Apple.COM Organization: Hackers Anonymous Lines: 44 In article <1991May29.162514.20304@mmm.serc.3m.com>, pejacoby@mmm.serc.3m.com (Paul E. Jacoby) writes: > > In article <13648@goofy.Apple.COM> alexr@apple.com (Alexander M. Rosenberg) writes: > > > >So, I've written code that calls SelectWindow on windows from other apps. > > > >Any suggestions as to what kind of bizarre drugs they smoke at Microsoft, or > >a suggestion as to how to force _any_ app to bring a particular window to > >the front? (Excluding windoids, etc.) > > Not that it helps _solve_ the problem at hand, but there is an INIT (old > 6.0.x stuff, forgive the terminology :-) called "PopWMenu" which brings > up a list of all available windows when you hold down the Control key > and click the mouse. It too shows the goofy stuff with Microsoft Excel, > but will indeed bring one of the 'phantom' windows to the front! Leaves > the user in an odd state, but it apparently CAN be done with MS apps.... > > As to suggestions on drugs, I think that is more fodder for alt.bizzare > or some such group :-) > -- > | Paul E. Jacoby, 3M Company, 3M Center, 235-3F-27 | > | Maplewood, MN 55144-1000 .-----------------------------------| > | => pejacoby@3m.com | I am _not_ the editor of | > | (612) 737-3211 | the Radio Times. | > I'm trying to do something similar to what "PopWMenu" does (programatically). However, "goofy stuff" isn't an acceptable result of user actions in this case. The 'phantom' windows found in Excel can be filtered out because they have no title. (Only real strings belong in a text list anyway.) My problem is that the "regular" windows in Excel aren't "regular" at all. Calling _SelectWindow on them screws things all up (read: Bus Error). "PopWMenu" and other similar things just call _SelectWindow, as I would have liked to do. Anybody from Microsoft who would care to explain their "windows" to me? --------------------------------------------------------------------------- - Alexander M. Rosenberg - INTERNET: alexr@apple.com - Yoyodyne - - 330 1/2 Waverley St. - UUCP:ucbvax!apple!alexr - Propulsion - - Palo Alto, CA 94301 - - Systems - - (415) 329-8463 - Nobody is my employer so - :-) - - (408) 974-3110 - nobody cares what I say. - -