home *** CD-ROM | disk | FTP | other *** search
- /*
- *--- PPaintWindow.cpp ----------------------------------------------------
- * Copyright (c) 1995-96 Adobe Systems Incorporated. All rights reserved.
- * Created on Thu, Oct 12, 1995 @ 10:48 PM by Paul Ferguson.
- *
- * Description: For notes about this class, refer to the
- * PCL documentation file PPaintWindow.html
- *-------------------------------------------------------------------------
- */
-
-
- #include "PPaintWindow.h"
- #include "PCommand.h"
-
- PPaintWindow::PPaintWindow(long theWindow)
- {
- PCommand command(pm_paintwindow, theWindow);
-
- #ifdef MACINTOSH
- if (theWindow) // you will have to provide this yourself.
- {
- GrafPtr savedPort;
-
- GetPort(&savedPort);
- SetPort((GrafPtr) theWindow);
- BeginUpdate((GrafPtr) theWindow);
- // Note: May need to put InvalRect() trap in here... Should check.
-
- EndUpdate((GrafPtr) theWindow);
- SetPort(savedPort);
- }
- #endif
- }
-
- // end of PPaintWindow.cpp
-