]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/icon.cpp
missing commit
[wxWidgets.git] / src / msw / icon.cpp
index fdd9d501c33f7fc132a04d2ec35a5a5afd7ce244..dccefc51ccc9976eb7869c14d1656396f7016c36 100644 (file)
@@ -156,3 +156,14 @@ bool wxIcon::LoadFile(const wxString& filename,
 
     return handler->Load(this, filename, type, desiredWidth, desiredHeight);
 }
+
+bool wxIcon::CreateFromHICON(WXHICON icon)
+{
+    SetHICON(icon);
+    if ( !IsOk() )
+        return false;
+
+    SetSize(wxGetHiconSize(icon));
+
+    return true;
+}