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.
TestFunctions.c
/* |
File: TestFunctions.c |
Contains: Insert the test functions inside this file. |
Written by: DTS |
Copyright: © 1995 by Apple Computer, Inc., all rights reserved. |
Change History (most recent first): |
<1> 2/26/95 khs first file |
*/ |
// INCLUDES |
#include "TestFunctions.h" |
#include "DTSQTUtilities.h" |
#include "MacFramework.h" |
// TEST FUNCTIONS |
// ______________________________________________________________________ |
void ResizeTheMovieWindow(long theMovieSize) |
{ |
MovieController mc = NULL; |
Rect originalRect; |
WindowRef aWindow = NULL; |
WindowObject aWindowObject = NULL; |
// We need all this code below |
aWindow = FrontWindow(); // do we have a window? |
if(aWindow == NULL) |
{ |
SysBeep(10); |
return; |
} |
mc = GetMCFromFrontWindow(); // does the front window have a movie controller? |
if(mc == NULL) |
{ |
SysBeep(10); |
return; |
} |
aWindowObject = (WindowObject)GetWRefCon(aWindow); DebugAssert(aWindowObject != NULL); |
originalRect = (**aWindowObject).originalSize; |
if ( QTUResizeMCWindow(mc, (WindowPtr) aWindow, theMovieSize, originalRect) != noErr) |
SysBeep(10); |
} |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14