home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / menus / menures / menures.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-29  |  684 b   |  26 lines

  1. //************************************************************
  2. // Menus  - Defining a Menu Resource
  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 "menures.h"
  11.  
  12. void main()
  13. {
  14. // Create a frame window with a menubar from a resource.
  15. IFrameWindow
  16.   frame ("Menu Resource Example", MAIN_MENU,
  17.          IFrameWindow::defaultStyle() | IFrameWindow::menuBar);
  18.  
  19. // Set the focus and show the application.
  20. frame
  21.   .setFocus()
  22.   .show();
  23. IApplication::current().run();
  24. }
  25.  
  26.