[comp.sys.mac.programmer] DragGrayRgn bug?

cpyang@ccnysci.UUCP (Chao Ping Yang) (11/04/88)

Has anyone used the DragGrayRgn function in MPW C?
It never works for me and I wind up writing my own.
I have tried both the DragGrayRgn and DRAGGRAYRGN
and they always give me a System Error.  I have
used most oof the other toolbox functions and I don't
understand why I always hung on this one.

==Chaoping
 

mattb@microsoft.UUCP (Matt Bamberger) (11/06/88)

Are you using the phonebook version of Inside Mac?  As I recall, that neglects
to mention that DragGrayRgn alters the region you pass to it.  If you don't
want to have your region clobbered, you have to pass a handle to a copy of
it.
	-mattb

Matt Bamberger				"And priests in black gowns
Microsoft Corporation			 were walking their rounds
Applications Division			 And binding with briars
...uw-beaver!microsoft!mattb		 my joys and desires"