home *** CD-ROM | disk | FTP | other *** search
- #include <exec/types.h>
- #include <intuition/intuition.h>
-
- /* make_window() will open a window on the specifeid screen and with the
- supplied characteristics. */
-
- make_window(x,y,w,h,name,flags,color0,color1,screen)
- SHORT x,y,w,h;
- UBYTE *name,color0,color1;
- ULONG flags;
- struct Screen *screen;
- {
- struct NewWindow nw;
-
- nw.LeftEdge = x;
- nw.TopEdge = y;
- nw.Width = w;
- nw.Height = h;
- nw.DetailPen = color0;
- nw.BlockPen = color1;
- nw.Title = name;
- nw.Flags = flags;
- nw.IDCMPFlags = CLOSEWINDOW | VANILLAKEY;
- if(screen==NULL)
- nw.Type = WBENCHSCREEN;
- else {
- nw.Type = CUSTOMSCREEN;
- nw.Screen = screen;
- }
- nw.FirstGadget = NULL;
- nw.CheckMark = NULL;
- nw.BitMap = NULL;
- nw.MinWidth = 0;
- nw.MaxWidth = 0;
- nw.MinHeight = 0;
- nw.MaxHeight = 0;
-
- return(OpenWindow(&nw));
- }