+ wxIcon();
+
+ wxIcon( const char bits[]
+ ,int nWidth
+ ,int nHeight
+ );
+ wxIcon(const char* const* ppData) { CreateIconFromXpm(ppData); }
+#ifdef wxNEEDS_CHARPP
+ wxIcon(char** ppData) { CreateIconFromXpm(wx_const_cast(const char* const*, ppData)); }
+#endif
+ wxIcon( const wxString& rName
+ ,long lFlags = wxBITMAP_TYPE_ICO_RESOURCE
+ ,int nDesiredWidth = -1
+ ,int nDesiredHeight = -1
+ );
+ wxIcon(const wxIconLocation& loc)
+ {
+ LoadFile(loc.GetFileName(), wxBITMAP_TYPE_ICO);
+ }
+
+ virtual ~wxIcon();
+
+ bool LoadFile( const wxString& rName
+ ,long lFlags = wxBITMAP_TYPE_ICO_RESOURCE
+ ,int nDesiredWidth = -1
+ ,int nDesiredHeight = -1
+ );
+
+ wxIconRefData *GetIconData() const { return (wxIconRefData *)m_refData; }
+
+ inline void SetHICON(WXHICON hIcon) { SetHandle((WXHANDLE)hIcon); }
+ inline WXHICON GetHICON() const { return (WXHICON)GetHandle(); }
+ inline bool IsXpm(void) const { return m_bIsXpm; };
+ inline const wxBitmap& GetXpmSrc(void) const { return m_vXpmSrc; }
+
+ void CopyFromBitmap(const wxBitmap& rBmp);
+protected:
+ virtual wxGDIImageRefData* CreateData() const
+ {
+ return new wxIconRefData;
+ }
+ void CreateIconFromXpm(const char* const* ppData);