home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 038 / dho_9a.zip / EXAMPLE2.CC < prev    next >
Text File  |  1994-12-06  |  940b  |  41 lines

  1. // Developer Helper Object Set, (C) 1994 Thomas E. Bednarz, Jr.
  2. //  All rights reserved
  3.  
  4. /*
  5.  
  6.    This code fragment shows how to set up a simple demo program
  7.    which will uses a main window.   Notice the use of the window class member
  8.    getClassName, which is used in the automation of regisration
  9.    with Presentation Manager.
  10.  
  11.     In all, about 10 lines of additional code on top of
  12.     the Developer Helper Object set which will pop up
  13.     a main window, which has the CUA Open File and 
  14.     Save File Dialogs -- notice that Exit does not work.
  15.  
  16.  */
  17.  
  18.  
  19.  
  20. #include "mainwin.h"
  21. #include"applicat.h"
  22.  
  23. class TTestApp : public TApplication
  24. {
  25.  
  26.    public:
  27.       TTestApp(ULONG x): TApplication ( x){;};
  28.       virtual void CreateMainWindow(){   MainWin = new TMainWindow(
  29.                 "FileDialog Tester", DefaultFlags, 100);}
  30.  
  31.  
  32. };
  33.  
  34.  
  35. INT main(void)
  36. {
  37.    TTestApp mw(100);
  38.    mw.init();
  39.    mw.run();
  40. }
  41.