// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "icon.h"
#endif
{
}
+wxObjectRefData *wxIcon::CloneRefData(const wxObjectRefData *dataOrig) const
+{
+ const wxIconRefData *
+ data = wx_static_cast(const wxIconRefData *, dataOrig);
+ if ( !data )
+ return NULL;
+
+ wxIcon *self = wx_const_cast(wxIcon *, this);
+ self->UnRef();
+ self->m_refData = new wxIconRefData(*data);
+
+ if ( data->m_hIcon )
+ {
+ ::CopyIcon(HICON(data->m_hIcon));
+ }
+
+ return m_refData;
+}
+
void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
{
#ifndef __WXMICROWIN__
if ( !handler )
{
// say something?
- return FALSE;
+ return false;
}
return handler->Load(this, filename, type, desiredWidth, desiredHeight);