-bool wxIcon::LoadFile(const wxString& filename, wxBitmapType type,
- int desiredWidth, int desiredHeight)
+WXHICON wxIcon::GetHICON() const
+{
+ wxASSERT( Ok() ) ;
+
+ return (WXHICON) ((wxIconRefData*)m_refData)->GetHICON() ;
+}
+
+int wxIcon::GetWidth() const
+{
+ wxCHECK_MSG( Ok(), -1, wxT("invalid icon") );
+
+ return M_ICONDATA->GetWidth();
+}
+
+int wxIcon::GetHeight() const
+{
+ wxCHECK_MSG( Ok(), -1, wxT("invalid icon") );
+
+ return M_ICONDATA->GetHeight();
+}
+
+int wxIcon::GetDepth() const
+{
+ return 32;
+}
+
+void wxIcon::SetDepth( int depth )
+{
+}
+
+void wxIcon::SetWidth( int width )
+{
+}
+
+void wxIcon::SetHeight( int height )
+{
+}
+
+bool wxIcon::IsOk() const
+{
+ return m_refData != NULL ;
+}
+
+bool wxIcon::LoadFile(
+ const wxString& filename, wxBitmapType type,
+ int desiredWidth, int desiredHeight )