home *** CD-ROM | disk | FTP | other *** search
- // Zinc Interface Library - WINDOW1.CPP
- // COPYRIGHT (C) 1990, 1991. All Rights Reserved.
- // Zinc Software Incorporated. Pleasant Grove, Utah USA
-
- #include "ui_win.hpp"
-
- UIW_WINDOW *UIW_WINDOW::Generic(int left, int top, int width, int height,
- char *title, UIW_ICON *_icon, USHORT woFlags, USHORT woAdvancedFlags,
- int _helpContext)
- {
- UIW_WINDOW *window = new UIW_WINDOW(left, top, width, height,
- woFlags, woAdvancedFlags, _helpContext, _icon);
-
- // Add default window objects.
- *window
- + new UIW_BORDER
- + new UIW_MAXIMIZE_BUTTON
- + new UIW_MINIMIZE_BUTTON
- + UIW_SYSTEM_BUTTON::Generic()
- + new UIW_TITLE(title);
-
- // Return a pointer to the new window.
- return (window);
- }
-