home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / OCXCONT.PAK / OCXCNTAP.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  1.0 KB  |  41 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // Copyright (c) 1995, 1996 by Borland International, All Rights Reserved
  4. //
  5. // $Revision:   10.0  $
  6. //
  7. // Sample illustrating a container with an OCX as client window
  8. //----------------------------------------------------------------------------
  9. #if !defined(OCXCONTAPP_H)
  10. #define OCXCONTAPP_H
  11.  
  12. #if !defined(OCF_OCAPP_H)
  13. # include <ocf/ocapp.h>
  14. #endif
  15. #if !defined(OWL_APPLICAT_H)
  16. # include <owl/applicat.h>
  17. #endif
  18.  
  19.  
  20. // Main Application object
  21. //
  22. class TOCXContApp : public TApplication, public TOcAppHost {
  23.  
  24.   public:
  25.     TOCXContApp();
  26.  
  27.     // Since this is a non-docview application, an implementation of
  28.     // CreateOleObject for app class must be provided.
  29.     //
  30.     TUnknown* CreateOleObject(uint32 options, TRegLink* link) {return 0;}
  31.  
  32.   public:
  33.  
  34.     // Override virtual methods of TApplication
  35.     //
  36.     virtual void InitMainWindow();
  37.     virtual void InitInstance();
  38. };
  39.  
  40. #endif
  41.