HBITMAP转成CBitmap:
CBitmap* pcBmp = CBitmap::FromHandle(hBmp);
CBitmap bmp;
bmp.Attach(hbmp);
CBitmap转成HBITMAP:
HBITMAP hBmp = (HBITMAP)cBmp;
CBitmap* pBmp;
HBITMAP hBmp = (HBITMAP)(*pBmp);//(HBITMAP)是CBitmap类重载了的操作符.