/*
 * ************************************************************************************************************
 * Author: Marcin Załęczny
 * Copyright (C)2010 Marcin Załęczny <mzaleczny@hotmail.com>
 * License: The GNU Lesser General Public License, version 3.0 (LGPLv3)
 * Library Name: mzstdgraphics
 * Version: 1.05
 * First release date:   2010-11-08
 * Current release date: 2011-03-04
 *
 *
 * This file is part of mzstdgraphics library
 * 
 * mzstdgraphics library is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * mzstdgraphics library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 * ************************************************************************************************************
 */

#ifndef __MZSTDGRAPHICS_ICON_H__
#define __MZSTDGRAPHICS_ICON_H__

#include "mzstdgraphicsCommon.h"
#include "mzObject.h"
#include "mzString.h"


class DECLSPEC_MZSTDGRAPHICS CIcon : public CObject {
public:
    HICON hIcon;
    CString fname;

    WINAPI CIcon(HINSTANCE hInst, CString fname, LONG size = 32);
    virtual WINAPI ~CIcon();

    LONG inline WINAPI width() { return this->_width; }
    LONG inline WINAPI height() { return this->_height; }

protected:
    // rozmiary ikony
    LONG _width;
    LONG _height;

    // Blokujemy możliwość utworzenia bitmapy bez podania parametrów
    WINAPI CIcon() : hIcon(NULL), fname("") {}
};

typedef CIcon* PIcon;

#endif
