home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / EDITSEAR.PAK / EDITSEAX.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  880 b   |  33 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // Copyright (c) 1991, 1995 by Borland International, All Rights Reserved
  4. //----------------------------------------------------------------------------
  5. #include <owl/pch.h>
  6. #include <owl/applicat.h>
  7. #include <owl/framewin.h>
  8. #include <owl/editsear.h>
  9.  
  10. //
  11. // class TEditApp
  12. // ~~~~~ ~~~~~~~~
  13. class TEditApp : public TApplication {
  14.   public:
  15.     TEditApp() : TApplication("Edit Search Application") {}
  16.     void InitMainWindow();
  17. };
  18.  
  19. void
  20. TEditApp::InitMainWindow()
  21. {
  22.   MainWindow = new TFrameWindow(0, "EditWindow", new TEditSearch);
  23.   MainWindow->AssignMenu(IDM_EDITSEARCH);
  24.   MainWindow->Attr.AccelTable = TResId(IDA_EDITSEARCH);
  25.   MainWindow->Attr.Style |= DS_LOCALEDIT;
  26. }
  27.  
  28. int
  29. OwlMain(int /*argc*/, char* /*argv*/ [])
  30. {
  31.   return TEditApp().Run();
  32. }
  33.