home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / TurboTCP 1.0.1 / Aliases / About box classes / CAboutDialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-10  |  1.6 KB  |  60 lines  |  [TEXT/KAHL]

  1. /*
  2. ** CAboutDialog.h
  3. **
  4. **    About box library
  5. **    Dialog box class
  6. **
  7. **    Copyright Â© 1993, FrostByte Design / Eric Scouten
  8. **
  9. */
  10.  
  11.  
  12. #pragma once
  13.  
  14. #include <CDLOGDialog.h>
  15.  
  16.  
  17. /*______________________________________________________________________
  18. **
  19. ** CAboutDialog
  20. **
  21. **    A specialized dialog-box class, primarily for use with about boxes and splash screens
  22. **    at application start-up. Its three customizations are:
  23. **
  24. **        1.   to automatically substitute a black-and-white version of a picture when the pixel
  25. **            depth is inadequate for displaying full-color pictures
  26. **        2.   to allow the designer of the dialog box to specify which font will be used
  27. **            for static-text items
  28. **        3.   to provide a mechanism to substitute the application’s version number, which
  29. **            is read from the 'vers' resource.
  30. **
  31. */
  32.  
  33. class CAboutDialog : public CDLOGDialog {
  34.  
  35.     // construction/destruction
  36.  
  37. public:
  38.     void IAboutDialog (short DLOGid, CDesktop *anEnclosure, CDirector *aSupervisor);
  39.  
  40.  
  41.     // special item-handling methods
  42.     
  43.     CPane *AddDITLStatText (short aWidth, short aHeight, short hEncl, short vEncl,
  44.                         CView *enclosure, tDITLItem *ditlItem);
  45.     CPane *AddDITLPicture (short aWidth, short aHeight, short hEncl, short vEncl,
  46.                         CView *enclosure, tDITLItem *ditlItem);
  47.     CPane *AddOverloadedItem (StringPtr itemText, short aWidth, short aHeight, 
  48.                             short hEncl, short vEncl, CView *enclosure,
  49.                             tDITLItem *ditlItem);
  50.  
  51.  
  52.     // utility procedures
  53.  
  54. protected:
  55.     void CollectUntilHiBit (StringPtr text, short *index, StringPtr returnStr);
  56.     void ExpandHiBit (unsigned char theChar, StringPtr returnStr);
  57.     void GetVersion (short versID, Str255 theString);
  58.  
  59. };
  60.