home *** CD-ROM | disk | FTP | other *** search
- /*
- Copyright © 1994 Demos, inc.
- Written by: Dmitry Boldyrev
- */
-
- #include "LZSSLib.h"
- #include "utils.h"
-
- void InitToolbox(void)
- {
- InitGraf(&qd.thePort);
- InitFonts();
- InitWindows();
- InitMenus();
- TEInit();
- InitDialogs(nil);
- InitCursor();
- InitResources();
- FlushEvents(everyEvent,0);
- SetEventMask(everyEvent);
- MaxApplZone();
- }
-
- main()
- {
- Handle theHandle;
- PicHandle aPicture;
- short rAttrs, i, ac;
- ResType res;
- WindowPtr theWindow;
- Rect winarea, picRect;
-
- InitToolbox();
-
- theWindow = (WindowPtr)CreateWindow( &screenBits.bounds, "\p", plainDBox, 0L);
- HideMenuBar(theWindow);
- SetPort( (WindowPtr)theWindow );
- FillRect( &thePort->portRect, black );
-
- if ((theHandle = GetCResource('PICT', 5002)) == nil)
- ExitToShell();
-
- aPicture = (PicHandle)theHandle;
- picRect = (*aPicture)->picFrame;
- CenterRect(theWindow->portRect, &picRect);
- DrawPicture(aPicture, &picRect);
- while (!Button());
- ShowMenuBar(theWindow);
-
- DisposeHandle(theHandle);
- DisposeWindow(theWindow);
- }