#include <atlimage.h >
CImage img;HRESULT ret = img.Load(_T("res/lampLeftDie.png")); // filename 是要加载的文件名(包含路径) HBITMAP hBitmap = img.Detach(); CBitmap* pbm = CBitmap::FromHandle(hBitmap);