home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0040 - 0049 / ibm0040-0049 / ibm0040.tar / ibm0040 / ZINC_6.ZIP / DOSSRC.ZIP / G_SYS.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1991-06-01  |  854 b   |  25 lines

  1. //    Zinc Interface Library - SYS1.CPP
  2. //    COPYRIGHT (C) 1990, 1991.  All Rights Reserved.
  3. //    Zinc Software Incorporated.  Pleasant Grove, Utah  USA
  4.  
  5. #include "ui_win.hpp"
  6. #include <string.h>
  7.  
  8. UIW_SYSTEM_BUTTON *UIW_SYSTEM_BUTTON::Generic()
  9. {
  10.     UIW_SYSTEM_BUTTON *systemButton = new UIW_SYSTEM_BUTTON;
  11.  
  12.     // Add default system button options.
  13.     *systemButton
  14.         + new UIW_POP_UP_ITEM("~Restore", MNIF_RESTORE, BTF_NO_TOGGLE)
  15.         + new UIW_POP_UP_ITEM("~Move", MNIF_MOVE, BTF_NO_TOGGLE)
  16.         + new UIW_POP_UP_ITEM("~Size", MNIF_SIZE, BTF_NO_TOGGLE)
  17.         + new UIW_POP_UP_ITEM("Mi~nimize", MNIF_MINIMIZE, BTF_NO_TOGGLE)
  18.         + new UIW_POP_UP_ITEM("Ma~ximize", MNIF_MAXIMIZE, BTF_NO_TOGGLE)
  19.         + new UIW_POP_UP_ITEM
  20.         + new UIW_POP_UP_ITEM("~Close", MNIF_CLOSE, BTF_NO_TOGGLE);
  21.  
  22.     // Return a pointer to the new system button.
  23.     return (systemButton);
  24. }
  25.