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.
QTCustomButton.h
////////// |
// |
// File: QTCustomButton.h |
// |
// Contains: Header file for displaying and managing the custom button in the controller bar. |
// |
// Written by: Tim Monroe |
// |
// Copyright: © 1999 by Apple Computer, Inc., all rights reserved. |
// |
// Change History (most recent first): |
// |
// <1> 11/25/99 rtm first file |
// |
////////// |
////////// |
// |
// header files |
// |
////////// |
#ifndef __MOVIES__ |
#include <Movies.h> |
#endif |
////////// |
// |
// constants |
// |
////////// |
#define kCustomButtonMenuID 1000 |
#define kItem1Index 1 |
#define kItem2Index 2 |
#define kItem3Index 3 |
#define kSaveItemIndex kItem3Index |
#define kMenuTitle "" |
#define kItem1Text "Beep" |
#define kItem2Text "About QTController..." |
#define kItem3Text "Save" |
#define kDividingLine "-" |
#if TARGET_OS_WIN32 |
#define MacEnableMenuItem EnableItem |
#define DisableMenuItem DisableItem |
#endif |
////////// |
// |
// function prototypes |
// |
////////// |
void QTCustom_HandleCustomButtonClick (MovieController theMC, EventRecord *theEvent, long theRefCon); |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14