home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / iv31pm.zip / ivos2.zip / iv / src / examples / box4 / main.c < prev    next >
C/C++ Source or Header  |  1992-05-14  |  538b  |  22 lines

  1. #include <IV-look/kit.h>
  2. #include <InterViews/background.h>
  3. #include <InterViews/layout.h>
  4. #include <InterViews/session.h>
  5. #include <InterViews/window.h>
  6.  
  7. int main(int argc, char** argv) {
  8.     Session* session = new Session("Himom", argc, argv);
  9.     WidgetKit& kit = *WidgetKit::instance();
  10.     const LayoutKit& layout = *LayoutKit::instance();
  11.     return session->run_window(
  12.     new ApplicationWindow(
  13.         new Background(
  14.         layout.hbox(
  15.             kit.label("good"), layout.hglue(), kit.label("bye")
  16.         ),
  17.         kit.background()
  18.         )
  19.     )
  20.     );
  21. }
  22.