Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!uwmcsd1!nic.MR.NET!umn-cs!bungia!meccts!meccsd!prw From: prw@meccsd.MECC.MN.ORG (Paul R. Wenker) Newsgroups: comp.sys.apple Subject: Re: Window close box question Keywords: Window close-box IIgs Desktop Message-ID: <929@meccsd.MECC.MN.ORG> Date: 26 Jul 88 14:13:29 GMT References: <5970@ihlpl.ATT.COM> Reply-To: prw@meccsd.UUCP (Paul R. Wenker) Organization: Minn. Educ. Comp. Corp. Lines: 16 In article <5970@ihlpl.ATT.COM> nala@ihlpl.ATT.COM (A. Flora-Holmquist) writes: >...However, when clicking the window close box, the window >does not close, although the close box is highlighted when clicked.... Since there may be some cleanup associated with closing a window (i.e. closing a file, disposing of memory) that is specific to each application, TaskMaster just returns a 'wInGoAway' code when the user clicks in the close box. The 'wmTaskData' field of the event record will contain a pointer to the window that needs to be closed. If the window is one of your own, just do whatever cleanup is necessary and then call CloseWindow. If the window is not yours, just pass the window pointer to CloseNDAbyWinPtr. Paul R. Wenker prw@meccsd MECC, Technical Services