home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Code Resources / SliderCDEF 1.0 / SliderCDEF Source ƒ / SliderDisposeControl.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-10  |  585 b   |  18 lines  |  [TEXT/KAHL]

  1. #include "SliderCDEF.h"
  2.  
  3. // SliderDisposeControl
  4. //
  5. // This routine is called in response to the dispCntl message so that the CDEF may
  6. // do additional disposal actions.
  7. void SliderDisposeControl( short varCode, ControlHandle theControl, long param )
  8. {
  9.     // Dispose of the slider's GWorld.
  10.     if (  (**((SliderDataHnd)(**theControl).contrlData)).sliderPort  != nil ) {
  11.         DisposeGWorld( (**((SliderDataHnd)(**theControl).contrlData)).sliderPort );
  12.     }
  13.     
  14.     // Dispose of the slider's private data.
  15.     if ( (**theControl).contrlData != nil ) {
  16.         DisposeHandle(     (**theControl).contrlData );
  17.     }
  18. }