home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 432b.lha / EzLib / doc / killwindow.doc < prev    next >
Encoding:
Text File  |  1990-11-11  |  912 b   |  27 lines

  1. FUNCTION  killwindow()  -  (safely) Close a previoulsy opened window
  2.  
  3.     killwindow(window)
  4.       struct Window *window;
  5.  
  6.     This function will close the window you pass it.  If you have menus
  7. attatched to the window, they will be cleared before the window closes.
  8. However if you have already cleared the menus yourself (with
  9. ClearMenuStrip() ), then you must NULL out the window->MenuStrip field
  10. before you call killwindow().
  11.  
  12.     There are no return values from this function.
  13.  
  14.     It is safe to pass a NULL pointer to this function (it checks for
  15. that).    This function will also reply to any existing messages that are at
  16. your window->UserPort (making it safe to call anytime).
  17.  
  18. TODO : Not really much else I can do.  Might possibly want to do some sort
  19.        of resource tracking using the UserData field (for gadgets etc).
  20.  
  21. BUGS : you kidding? ;-)
  22.  
  23. SEE ALSO : makewindow(); killscreen(); makescreen();
  24.  
  25.  
  26.  
  27.