home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pwrgu2.zip / POWERGU2.EXE / SHIPAPP / HELLO1 / HELLO1.CPP next >
Text File  |  1995-07-25  |  633b  |  32 lines

  1. #define INCL_DOSPROCESS
  2. #include <os2.h>
  3.  
  4. #include <iapp.hpp>         
  5. #include <istattxt.hpp>     
  6. #include <iframe.hpp>       
  7. #include <os2.h>
  8. #include <icconst.h>
  9.  
  10. void main()                             
  11. {
  12.   IFrameWindow frame("Main Window");
  13.   IStaticText text(IC_FRAME_CLIENT_ID, &frame, &frame);
  14.  
  15.   text
  16.     .setText("Hello, World!")
  17.     .setAlignment(IStaticText::centerCenter);
  18.  
  19.   frame
  20.    .setClient(&text)
  21.    .setFocus()
  22.    .show();
  23.  
  24.   // Close Down App - end of trace run
  25.   DosExit(EXIT_PROCESS,0);
  26.  
  27.   // Since we exit, the message loop never starts.
  28.   IApplication::current().run();
  29. }
  30.  
  31.  
  32.