home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 October: Mac OS SDK / Dev.CD Oct 00 SDK1.toast / Development Kits / Mac OS / Appearance SDK 1.0.4 / Appearance Sample Code / Source / UtilityWindow.h < prev   
Encoding:
C/C++ Source or Header  |  1999-07-16  |  1.2 KB  |  61 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        UtilityWindow.h
  3.  
  4.     Contains:    Utility window tester class.
  5.  
  6.     Version:    Appearance 1.0 SDK
  7.  
  8.     Copyright:    © 1997 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     File Ownership:
  11.  
  12.         DRI:                Edward Voas
  13.  
  14.         Other Contact:        7 of 9, Borg Collective
  15.  
  16.         Technology:            OS Technologies Group
  17.  
  18.     Writers:
  19.  
  20.         (edv)    Ed Voas
  21.  
  22.     Change History (most recent first):
  23.  
  24.          <1>     9/11/97    edv        First checked in.
  25. */
  26.  
  27. #ifndef _UTILITYWINDOW_H
  28. #define _UTILITYWINDOW_H
  29.  
  30. #include <Controls.h>
  31. #include "BaseWindow.h"
  32. #include "Appearance.h"
  33.  
  34. class UtilityWindow : public BaseWindow
  35. {
  36.     public:
  37.             UtilityWindow();
  38.         virtual ~UtilityWindow();
  39.         
  40.         virtual void        Activate( EventRecord& event );
  41.         virtual void        Deactivate( EventRecord& event );
  42.         virtual void        Draw();
  43.         virtual void        Resize( SInt16 width, SInt16 height );
  44.         virtual void        HandleClick( EventRecord& event );
  45.  
  46.     protected:
  47.             UtilityWindow( SInt16 windID );
  48.         
  49.     private:
  50.         virtual void        InvalidateScrollBars();
  51.         virtual void        CalcHorizScrollBarRect( Rect& rect );
  52.         virtual void        CalcVertScrollBarRect( Rect& rect );
  53.     
  54.         static pascal void    ScrollBarAction( ControlHandle control, SInt16 partHit );
  55.  
  56.         ControlHandle        fHorizScrollBar;
  57.         ControlHandle        fVertScrollBar;
  58. };
  59.  
  60. #endif // _UTILITYWINDOW_H
  61.