home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / editsear.pak / EDITSEAX.CPP < prev    next >
C/C++ Source or Header  |  1997-07-23  |  819b  |  29 lines

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