#ifndef __OOL_XICON_H__
#define __OOL_XICON_H__

/*===========================================================================*/
/* OOL ------------------- the Open Object Library ------------- OS/2 Beta 1 */
/*===========================================================================*/
/*                              class: XIcon                                 */
/*                       derived from: XObject                               */
/*                        last update: 9/96                                  */
/*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
/*===========================================================================*/

#include "xobject.h"

class XResource;

class _export_ XIcon: public XObject
{
      friend class XContainerObject;
   private:
      OOL_ICONHANDLE handle;
      BOOL loaded;
   public:
      XIcon() { handle = 0; loaded = FALSE;}
      ~XIcon();
      OOL_ICONHANDLE GetHandle( void ) const { return handle; }
      BOOL Load( const XResource *);
      BOOL Load( const char * file, const BOOL copy = FALSE );
};


#endif
