#ifndef __OOL_XCONTROL_H__
#define __OOL_XCONTROL_H__

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


#include "xwindow.h"

class XRect;
class XControlEvent;

class _export_ XControl: public XWindow{
      friend MRESULT ControlProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
   protected:
      PFNWP oldfunc;
   protected:
      XControl ( HWND hwnd );
   public:
      XControl(XRect * rec, ULONG style, XWindow * ow, const char * title = "", PSZ cl = 0, USHORT id = 0);
      virtual ~XControl() {;}
};


#endif
