]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/generic/icon.cpp
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / src / generic / icon.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/generic/icon.cpp
3// Purpose: wxIcon implementation for ports where it's same as wxBitmap
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// Copyright: (c) Julian Smart
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11// for compilers that support precompilation, includes "wx.h".
12#include "wx/wxprec.h"
13
14#ifdef __BORLANDC__
15 #pragma hdrstop
16#endif
17
18#include "wx/icon.h"
19
20//-----------------------------------------------------------------------------
21// wxIcon
22//-----------------------------------------------------------------------------
23
24IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap)
25
26wxIcon::wxIcon(const char* const* bits) :
27 wxBitmap( bits )
28{
29}
30
31#ifdef wxNEEDS_CHARPP
32wxIcon::wxIcon(char **bits) :
33 wxBitmap( bits )
34{
35}
36#endif
37
38wxIcon::wxIcon() : wxBitmap()
39{
40}
41
42void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
43{
44 wxIcon *icon = (wxIcon*)(&bmp);
45 *this = *icon;
46}