home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / OWLINC.PAK / OLEMDIFR.H < prev    next >
C/C++ Source or Header  |  1995-08-29  |  1KB  |  41 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // (C) Copyright 1994 by Borland International, All Rights Reserved
  4. //
  5. //----------------------------------------------------------------------------
  6. #if !defined(OWL_OLEMDIFR_H)
  7. #define OWL_OLEMDIFR_H
  8.  
  9. #if !defined(OWL_OLEFRAME_H)
  10. # include <owl/oleframe.h>
  11. #endif
  12. #if !defined(OWL_MDI_H)
  13. # include <owl/mdi.h>
  14. #endif
  15.  
  16. //
  17. //  class TOleMDIFrame
  18. //  ----- ------------
  19. //
  20. //  Decorated MDI frame that supports OLE 2 using OCF
  21. //
  22. class _USERCLASS TOleMDIFrame : public TOleFrame, public TMDIFrame {
  23.   public:
  24.     TOleMDIFrame(const char far* title,
  25.                  TResId          menuResId,
  26.                  TMDIClient&     clientWnd = *new TMDIClient,
  27.                  bool            trackMenuSelection = false,
  28.                  TModule*        module = 0);
  29.  
  30.    ~TOleMDIFrame();
  31.  
  32.   protected:
  33.     LRESULT    DefWindowProc(uint message, WPARAM wParam, LPARAM lParam);
  34.     bool       EvOcAppInsMenus(TOcMenuDescr far& sharedMenu);
  35.     void       EvActivateApp(bool active, HTASK hTask);
  36.  
  37.   DECLARE_RESPONSE_TABLE(TOleMDIFrame);
  38. };
  39.  
  40. #endif  // OWL_OLEMDIFR_H
  41.