home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / notebook / simple / simple.cpp < prev   
Text File  |  1996-10-29  |  628b  |  25 lines

  1. //************************************************************
  2. // Notebook Control - Simple Notebook Example
  3. //
  4. // Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
  5. // Copyright (c) 1997 John Wiley & Sons, Inc. 
  6. // All Rights Reserved.
  7. //************************************************************
  8. #include <inotebk.hpp>
  9. #include <iframe.hpp>
  10. #include <iapp.hpp>
  11. #include <icconst.h>
  12.  
  13. void main()
  14. {
  15.   IFrameWindow frame ("Simple Notebook");
  16.   INotebook notebook (IC_FRAME_CLIENT_ID, &frame, &frame);
  17.  
  18.   frame
  19.     .setClient(¬ebook)
  20.     .setFocus()
  21.     .show();
  22.   IApplication::current().run();
  23. }
  24.  
  25.