home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / frame1 / modal / modal.cpp < prev   
Encoding:
C/C++ Source or Header  |  1996-10-29  |  540 b   |  21 lines

  1. //*********************************************************
  2. // Frame Window Basics - Showing a Modal Frame Window
  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 <iframe.hpp>
  9.  
  10. void main ( ) 
  11. {
  12.   IFrameWindow
  13.     mainWindow( "Modal Frame Window" );
  14.  
  15.   // Give the frame window the input focus.
  16.   mainWindow.setFocus();
  17.  
  18.   // Process events.
  19.   mainWindow.showModally();
  20. }
  21.