Load a CBitmap dynamically

前端 未结 8 1939
情深已故
情深已故 2021-02-06 02:59

I have a Bitmap image that i want to load dynamically. But I am unable to load it.

CBitmap bmp;

bmp.LoadBitmap(\"c:\\\\aeimg\");

it does not

8条回答
  •  感动是毒
    2021-02-06 03:32

    You can also try something like this:

    CImage image;
    image.Load(_T("C:\\image.png"));
    CBitmap bitmap;
    bitmap.Attach(image.Detach());
    

提交回复
热议问题