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.
Sources/MSWindow.h
// MSWindow.h |
// |
// Original version by Jon Lansdell and Nigel Humphreys. |
// 4.0 and 3.1 updates by Greg Sutton. |
// ©Apple Computer Inc 1996, all rights reserved. |
#ifndef __MSWINDOW__ |
#define __MSWINDOW__ |
#include <Memory.h> |
#include <Types.h> |
#include <Quickdraw.h> |
#include <Fonts.h> |
#include <ToolUtils.h> |
#include <Traps.h> |
#include "MSGlobals.h" |
#include "MSUtils.h" |
#include "MSAppleEvents.h" |
DPtr DPtrFromWindowPtr(WindowPtr theWindow); |
void MyGrowWindow( WindowPtr w, Point p ); |
void GetPageEnds( short pageHeight, TEHandle theText, |
PageEndsArray pageBounds, short *nPages); |
void DoZoom( WindowPtr w, short c, Point p ); |
void DoContent( WindowPtr theWindow, EventRecord theEvent ); |
OSErr DoActivate(WindowPtr theWindow, Boolean activate); |
void DoUpdate( WindowPtr theWindow ); |
DPtr NewDocument(Boolean isForOldDoc, WindowPtr behindWindow); |
void CloseMyWindow(WindowPtr aWindow); |
void ShowSelect( DPtr theDoc ); |
void AdjustScrollbars( DPtr theDoc, Boolean needsResize ); |
void GetWinContentRect( WindowPtr theWindow, Rect *r ); |
void ResizeWindow( DPtr theDoc ); |
void ResizePageSetupForDocument( DPtr theDoc ); |
void InvalidateDocument( DPtr theDoc ); |
void DrawPageExtras(DPtr theDoc); |
void PrintWindow( DPtr theDoc, Boolean askUser ); |
pascal void VActionProc(ControlHandle control, short part); |
pascal void HActionProc(ControlHandle control, short part); |
void AdjustTE( DPtr theDoc ); |
void AdjustHV( Boolean isVert, ControlHandle control, DPtr theDoc, Boolean canRedraw ); |
void AdjustScrollValues( DPtr theDoc, Boolean canRedraw ); |
void GetTERect( WindowPtr window, Rect *teRect ); |
void AdjustScrollSizes( DPtr theDoc ); |
void CommonAction( ControlHandle control, short *amount ); |
void OffsetWindow(WindowPtr aWindow); |
// void GetLocalUpdateRgn( WindowPtr window, RgnHandle localRgn ); |
void DoBackgroundContent ( WindowPtr theWindow, EventRecord theEvent); |
void DrawPageBreaks(DPtr theDoc); |
void ShowMSWindow( WindowPtr theWindow ); |
void HideMSWindow( WindowPtr theWindow ); |
#endif |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14