Important: The information in this document is obsolete and should not be used for new development.
CloseDeskAcc
You can use theCloseDeskAcc
function to close a desk accessory.
pascal void CloseDeskAcc(short refNum);
refNum
- The driver reference number contained in the desk accessory's
WindowRecord
.DESCRIPTION
TheCloseDeskAcc
function closes the desk accessory specified by therefNum
parameter. Your application should callCloseDeskAcc
only when the user selects the Close or Quit item from your File menu and the active window does not belong to your application.You obtain the
refNum
parameter from thewindowKind
field of the desk accessory'sWindowRecord
. Do not use the driver reference number returned byOpenDeskAcc
.SPECIAL CONSIDERATIONS
TheCloseDeskAcc
function may move memory; you should not call it at interrupt time.SEE ALSO
For information about opening a desk accessory or other Apple menu item, see the description of theOpenDeskAcc
function on page 1-65.