home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / canvas / setdecks / setdecks.cpp < prev    next >
Text File  |  1996-10-29  |  1KB  |  44 lines

  1. //*********************************************************
  2. // Canvas - ISetCanvas Deck Operations
  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 <iapp.hpp>
  9. #include <iframe.hpp>
  10. #include <ivport.hpp>
  11. #include <icconst.h>
  12.  
  13. #include "deckcv.hpp"
  14. #include "setdecks.h"
  15.  
  16. void main ( )
  17. {
  18.   IFrameWindow
  19.     frame( ID_DECKS_FRAME,
  20.            IFrameWindow::classDefaultStyle
  21.              | IFrameWindow::accelerator
  22.              | IFrameWindow::menuBar );
  23.  
  24.   // Create the IViewPort client window.
  25.   IViewPort
  26.     client( IC_FRAME_CLIENT_ID, &frame, &frame );
  27.  
  28.   // Create the scrollable ISetCanvas.
  29.   DeckCanvas
  30.     deckCanvas( ID_DECK_CANVAS, &client, &client );
  31.   deckCanvas
  32.    .setChildCount( 5 )
  33.    .setDeckCount( 2 );
  34.  
  35.   // Show the window now.
  36.   frame
  37.    .setClient( &client )
  38.    .setFocus()
  39.    .show();
  40.  
  41.   IApplication::current().run();
  42. }
  43.  
  44.