VC 显示位图

 

HBITMAP hBitmap;
CBitmap bitmap;
hBitmap=(HBITMAP)::LoadImage(::AfxGetInstanceHandle(),"d:\\users\\Administrator\\Desktop\\1.bmp",IMAGE_BITMAP,0,0,LR_LOADFROMFILE|LR_CREATEDIBSECTION);
bitmap.Attach(hBitmap);
m_Picture.SetBitmap(hBitmap);

你可能感兴趣的:(VC)