home *** CD-ROM | disk | FTP | other *** search
- /************************************************************************************/
- /* HelpCloseProc */
- /************************************************************************************/
-
- #include "HelpCloseProc.h"
- /*#include "Globals.h"*/
- #ifndef __C14__
- #include "C14 Calculator.h"
- #endif
- #include "HelpWindowProc.h"
-
- void HelpCloseSeg() {} /* for reference in "UnloadSeg()" calls */
-
- short HelpCloseProc ()
- {
- short HCRetCode = 99;
- short item;
-
- if (windTbl[1].windPtr == 0) /* if window already closed */
- goto ENDING; /* skip this whole thing */
-
-
- LDispose (helpList); /* delete the list */
-
- windTbl[1].windPathRefNum = 0; /* indicate file closed */
- CloseWindow(windTbl[1].windPtr); /* close the window */
- windTbl[1].windPtr = 0; /* indicate closed */
- windTbl[1].windTEChanged = FALSE; /* initialize */
-
-
- ENDING:
- return HCRetCode;
-
- }