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

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // (C) Copyright 1991, 1994 by Borland International, All Rights Reserved
  4. //
  5. //   Declaration of class TMDIChild.
  6. //----------------------------------------------------------------------------
  7. #if !defined(OWL_MDICHILD_H)
  8. #define OWL_MDICHILD_H
  9.  
  10. #if !defined(OWL_FRAMEWIN_H)
  11. # include <owl/framewin.h>
  12. #endif
  13.  
  14. class _OWLCLASS TMDIClient;
  15.  
  16. //
  17. //  class TMDIChild
  18. //  ----- ---------
  19. //
  20. class _OWLCLASS TMDIChild : virtual public TFrameWindow {
  21.   public:
  22.     TMDIChild(TMDIClient&     parent,
  23.               const char far* title = 0,
  24.               TWindow*        clientWnd = 0,
  25.               bool            shrinkToClient = false,
  26.               TModule*        module = 0);
  27.  
  28.     TMDIChild(HWND hWnd, TModule* module = 0);
  29.  
  30.    ~TMDIChild() {}
  31.  
  32.     //
  33.     // override virtual methods defined by TWindow
  34.     //
  35.     bool       PreProcessMsg(MSG& msg);
  36.     bool       ShowWindow(int cmdShow);
  37.     bool       EnableWindow(bool enable);
  38.     void       Destroy(int retVal = 0);
  39.  
  40.   protected:
  41.     void       PerformCreate(int menuOrId);
  42.     LRESULT    DefWindowProc(uint msg, WPARAM wParam, LPARAM lParam);
  43.     void       EvMDIActivate(HWND hWndActivated,
  44.                              HWND hWndDeactivated);
  45.     bool       EvNCActivate(bool active);
  46.  
  47.   private:
  48.     //
  49.     // hidden to prevent accidental copying or assignment
  50.     //
  51.     TMDIChild(const TMDIChild&);
  52.     TMDIChild& operator =(const TMDIChild&);
  53.  
  54.   DECLARE_RESPONSE_TABLE(TMDIChild);
  55.   DECLARE_STREAMABLE(_OWLCLASS, TMDIChild, 1);
  56. };
  57.  
  58. #endif  // OWL_MDICHILD_H
  59.