#ifndef __OOL_XFRAME_H__
#define  __OOL_XFRAME_H__

/*===========================================================================*/
/* OOL ------------------- the Open Object Library ------ OS/2 version 0.01a */
/*===========================================================================*/
/*                              class: XFrame                                */
/*                       derived from: XControl                              */
/*                        last update: 5/96                                  */
/*                      programmed by: Stefan von Brauk                      */
/*===========================================================================*/



#include "xcontrol.h"

class XFrameControl;

class _export_ XFrame: public XControl{
      friend class XFrameWindow;
      friend class XScrollWindow;
      friend class XToolBar;
      friend class XMenuBar;
      friend class XProcess;
   private:
      USHORT adds;
      USHORT controls;
      XFrameControl ** cont;
      XFrameWindow * frame;
   public:
      MRESULT HandleMessage( ULONG msg, MPARAM mp1, MPARAM mp2 );
      XFrame( XFrameWindow * );
      XFrame( HWND hwnd);
      virtual ~XFrame();
      void AddFrameControl( XFrameControl * f);
      virtual XWindow * QueryWindow( ULONG id );
};

#endif
