<HTML>
<HEAD>
<TITLE>Includes</TITLE></HEAD><BODY><H6><A href=main.html>Contents page</A></H6><P>
<H6><A href=Main.html>Index</A></H6><P>
<H1>Includes</H1>
<HR>
  //////////////////////////////////////////////////////////////////////////////<PRE>
  // gadget.hpp
  //
  // Jeffry A Worth
  // November 10, 1995
  //////////////////////////////////////////////////////////////////////////////<P>

  #ifndef __GADGET_HPP__
  #define __GADGET_HPP__<P>

  //////////////////////////////////////////////////////////////////////////////
  // INCLUDES
  #include &quot;aframe:include/aframe.hpp&quot;
  #include &quot;aframe:include/window.hpp&quot;
  #include &quot;aframe:include/rect.hpp&quot;<P>

  //////////////////////////////////////////////////////////////////////////////
  // Definitions<P>

  #define AFGADGET_OWNERSTRUCT 0x80000000<P>

  //////////////////////////////////////////////////////////////////////////////
  // Gadget Class<P>

  class AFGadget : public AFObject
  {
  public:
    AFGadget();
    ~AFGadget();<P>

    virtual void DestroyObject();
    virtual char *ObjectType() { return &quot;Gadget&quot;; };<P>

    virtual void Create(AFWindow* pwindow, AFRect *rect,ULONG id);
    virtual void Create(AFWindow* pwindow, LPGadget psgadget);
    virtual void FillGadgetStruct(LPGadget psgadget);
    virtual void AddGadget();
    virtual void RemoveGadget();<P>

    // Events
    virtual void OnGadgetDown(LPIntuiMessage) { return; };
    virtual void OnGadgetUp(LPIntuiMessage) { return; };
    virtual void OnPaint() { return; };<P>

    LPGadget m_pgadget;
    AFWindow *m_pwindow;
    ULONG m_flags;
  };<P>

  //////////////////////////////////////////////////////////////////////////////
  #endif // __GADGET_HPP__
<HR>
