home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool.zip / OOL / include / xicon.h < prev    next >
C/C++ Source or Header  |  1997-02-23  |  1KB  |  33 lines

  1. #ifndef __OOL_XICON_H__
  2. #define __OOL_XICON_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------- OS/2 Beta 1 */
  6. /*===========================================================================*/
  7. /*                              class: XIcon                                 */
  8. /*                       derived from: XObject                               */
  9. /*                        last update: 9/96                                  */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13. #include "xobject.h"
  14.  
  15. class XResource;
  16.  
  17. class _export_ XIcon: public XObject
  18. {
  19.       friend class XContainerObject;
  20.    private:
  21.       OOL_ICONHANDLE handle;
  22.       BOOL loaded;
  23.    public:
  24.       XIcon() { handle = 0; loaded = FALSE;}
  25.       ~XIcon();
  26.       OOL_ICONHANDLE GetHandle( void ) const { return handle; }
  27.       BOOL Load( const XResource *);
  28.       BOOL Load( const char * file, const BOOL copy = FALSE );
  29. };
  30.  
  31.  
  32. #endif
  33.