]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/icon.cpp
Added ability to switch off more components of the size page UI
[wxWidgets.git] / src / msw / icon.cpp
index 778aace5f3a4e8edaec286abf98f6eabf23f30f4..dccefc51ccc9976eb7869c14d1656396f7016c36 100644 (file)
@@ -86,7 +86,7 @@ wxIcon::wxIcon(const wxIconLocation& loc)
     wxString fullname = loc.GetFileName();
     if ( loc.GetIndex() )
     {
-        fullname << _T(';') << loc.GetIndex();
+        fullname << wxT(';') << loc.GetIndex();
     }
     //else: 0 is default
 
@@ -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;
+}