HBITMAP LoadHbitmapFromFile(const std::wstring& filename)
{
Gdiplus::Bitmap* bitmap = Gdiplus::Bitmap::FromFile(filename.c_str(), false);
HBITMAP result = NULL;
if (bitmap)
{
bitmap->GetHBITMAP(Gdiplus::Color(255, 255, 255), &result);
delete bitmap;
}
return result;
}