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

  1. //*********************************************************
  2. // Frame Window Basics - Accessing the Title Bar
  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. #include <ithread.hpp>
  10. #include <ititle.hpp>
  11.  
  12. void main ( )
  13. {
  14.   IFrameWindow
  15.     frame( "Original Title Bar Text" );
  16.  
  17.   // Now replace the existing title bar text.
  18.   ITitle
  19.     title( &frame, "yourapp.ini", "Icon View", 1 );
  20.   
  21.   frame
  22.    .setFocus()
  23.    .show();
  24.  
  25.   IThread::current().processMsgs();
  26.