Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!nosc!dog.ee.lbl.gov!pasteur!agate!garnet.berkeley.edu!bmyers From: bmyers@garnet.berkeley.edu (Brian Myers) Newsgroups: comp.sys.mac.programmer Subject: How do I get a handle for an existing window? (Think Pascal) Summary: novice question--want to change title of Drawing window Message-ID: <1990Oct6.063726.19882@agate.berkeley.edu> Date: 6 Oct 90 06:37:26 GMT Sender: usenet@agate.berkeley.edu (USENET Administrator) Organization: University of California, Berkeley Lines: 17 I want to change the title of the Pascal Drawing window from "Drawing" to something else. I could probably do it by using ShowWindow to bring the window to the front and the calling the function that gives you the handle of the active window, but I want a more versatile algorithm that doesn't require bringing the window to the front. There's an assembly language constant called, I think, WindowsList, or somethinglike that, but THINK Pascal doesn't recognize it, so I can't get at the first entry in the system's linked list of windows. I also can't find any other traps that return a window handle unless you already have some other window handle to pass them. (Unless of course you create brand new windows, which is not what I need to do.) I assume there's some simple solution that I as a mere novice creeping over from the MS-DOS world haven't yet encountered? --------------------------------------------------------------------------- Brian Myers bmyers@garnet.berkeley.edu