Hi ^^
Thanks for last time reply..
I have a another question..
I want to load png files..
I already got a Bitmap handle, BITMAPINFOHEADER and raw data from png file.
ann then I tried Loadbitmap(resourceID, BITMAPINFOHEADER, data), But it didn't work.
and if bitsperpixel value is 16, Loadbitmap return 0.
Plase Help me
CCompImage* m_pImage; // Compressed Image
m_pImage = new CCompImage;
HBITMAP hBitmap = NULL;
m_pImage->Load(dc.GetSafeHdc(), _T("xxx.png"));
hBitmap = m_pImage->GetBitmapHandle();
CBitmap m_bitmap;
m_bitmap.Detach();
m_bitmap.Attach(hBitmap);
BITMAP bm;
m_bitmap.GetBitmap(&bm);
PBITMAPINFO bi = CreateBitmapInfoStruct(hBitmap);
if(!m_pGapi->LoadBitmap(m_backMap.m_ImgMap, &bi->bmiHeader, (BYTE*)bm.bmBits))
return FALSE;