hi, when i Attach() a bitmap from file to a CBitmap like this:
will bmp.Detach() free the memory correctly? or do i need to just use bmp.DeleteObject()? or both?Code:CBitmap bmp;
bmp.Attach((HBITMAP)LoadImage(NULL, GetAppPath() + "\\Images\\background.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE | LR_CREATEDIBSECTION));
i tried searching for the Detach() function but i couldn't find anything..
thanks