Newsgroups: comp.sys.mac.programmer
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!cornell!uw-beaver!steelhead.cs.washington.edu!chou
From: chou@steelhead.cs.washington.edu (Pai Hsiang Chou)
Subject: Re: writing to a window without selecting it.
Message-ID: <1991Apr9.194930.20063@beaver.cs.washington.edu>
Sender: news@beaver.cs.washington.edu (USENET News System)
Reply-To: chou@cs.washington.edu (Pai Hsiang Chou)
Organization: Computer Science & Engineering, U. of Washington, Seattle
References: <1991Apr9.034248.6761@hub.cs.jmu.edu> <1991Apr9.182240.9074@athena.mit.edu>
Distribution: comp
Date: Tue, 9 Apr 91 19:49:30 GMT

In article <1991Apr9.182240.9074@athena.mit.edu> captkidd@athena.mit.edu (Ivan Cavero Belaunde) writes:

>If what you mean by "selecting" the window is calling SelectWindow on it,
>(thereby bringing it to the front) you don't have to do that. You can just do:
>
>	oldPort = GetPort();

I think GetPort() is a procedure, not a function (i.e. has no return value).
The correct syntax is

	GetPort(&oldPort);

>	SetPort (myCoordWindow);
>	DrawMyStuff ();
>	SetPort (oldPort);
>
>QD takes care of all the clipping and stuff for you.


