Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
About.h
// About.h |
// Copyright © 1992 by Apple Computer, Inc. All rights reserved. |
// Kent Sandvik DTS |
// This file contains the About box code including any adorners/behaviors |
// The resources are placed in the project .r file |
// Version Info (latest first): |
// |
// <1> khs 1.0 First final version |
#ifndef __UABOUT__ |
#define __UABOUT__ |
#ifndef __MACAPP__ |
#include <MacApp.h> |
#endif |
#ifndef __RESOURCES__ |
#include <Resources.h> |
#endif |
// CONSTANTS |
const unsigned short phAboutBox = 12000; // our resource which resides in the .r file |
const ResType kVersInfoType = 'vers'; // for getting out the version info from the binary |
const ResNumber kVers1InfoID = 1; |
const IDType kBlueMetalLook = 'blmt'; // our AboutBox adorner ID |
// FUNCTION PROTOTYPES |
void CreateAboutBox(); // the one and only function, place this inside the |
// TApplication->DoAboutBox(), and you are up and running! |
// CLASSES |
// Our adorner used inside the About Box resource |
DeclareClassDesc(TMetalBlueFill); |
class TMetalBlueFill : public TAdorner |
{ |
DeclareClass(TMetalBlueFill); |
public: |
TMetalBlueFill(); |
virtual void Draw(TView* itsView, |
const VRect& /*area*/); |
}; |
#endif |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14