home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0040 - 0049 / ibm0040-0049 / ibm0040.tar / ibm0040 / ZINC_4.ZIP / WSOURCE.LIF / G_WIN1.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-13  |  713 b   |  25 lines

  1. //    Zinc Interface Library - WINDOW1.CPP
  2. //    COPYRIGHT (C) 1990, 1991.  All Rights Reserved.
  3. //    Zinc Software Incorporated.  Pleasant Grove, Utah  USA
  4.  
  5. #include "ui_win.hpp"
  6.  
  7. UIW_WINDOW *UIW_WINDOW::Generic(int left, int top, int width, int height,
  8.     char *title, UIW_ICON *_icon, USHORT woFlags, USHORT woAdvancedFlags,
  9.     int _helpContext)
  10. {
  11.     UIW_WINDOW *window = new UIW_WINDOW(left, top, width, height,
  12.         woFlags, woAdvancedFlags, _helpContext, _icon);
  13.  
  14.     // Add default window objects.
  15.     *window
  16.         + new UIW_BORDER
  17.         + new UIW_MAXIMIZE_BUTTON
  18.         + new UIW_MINIMIZE_BUTTON
  19.         + UIW_SYSTEM_BUTTON::Generic()
  20.         + new UIW_TITLE(title);
  21.  
  22.     // Return a pointer to the new window.
  23.     return (window);
  24. }
  25.