home *** CD-ROM | disk | FTP | other *** search
- // Zinc Interface Library - SYS1.CPP
- // COPYRIGHT (C) 1990, 1991. All Rights Reserved.
- // Zinc Software Incorporated. Pleasant Grove, Utah USA
-
- #include "ui_win.hpp"
- #include <string.h>
-
- UIW_SYSTEM_BUTTON *UIW_SYSTEM_BUTTON::Generic()
- {
- UIW_SYSTEM_BUTTON *systemButton = new UIW_SYSTEM_BUTTON;
-
- // Add default system button options.
- *systemButton
- + new UIW_POP_UP_ITEM("~Restore", MNIF_RESTORE, BTF_NO_TOGGLE)
- + new UIW_POP_UP_ITEM("~Move", MNIF_MOVE, BTF_NO_TOGGLE)
- + new UIW_POP_UP_ITEM("~Size", MNIF_SIZE, BTF_NO_TOGGLE)
- + new UIW_POP_UP_ITEM("Mi~nimize", MNIF_MINIMIZE, BTF_NO_TOGGLE)
- + new UIW_POP_UP_ITEM("Ma~ximize", MNIF_MAXIMIZE, BTF_NO_TOGGLE)
- + new UIW_POP_UP_ITEM
- + new UIW_POP_UP_ITEM("~Close", MNIF_CLOSE, BTF_NO_TOGGLE);
-
- // Return a pointer to the new system button.
- return (systemButton);
- }
-