git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29099
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
return new wxIconRefData;
}
+ virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
+
// create from XPM data
void CreateIconFromXpm(const char **data);
{
}
+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);
+ lf->UnRef();
+ lf->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__