CBitmap bmpPlayer;
bmpPlayer.LoadBitmap(IDBMP_PLAYER1);
m_pdcPlayerMem->CreateCompatibleDC(NULL);
m_pdcPlayerMem->SelectObject(&bmpPlayer);
void CView::OnDraw(CDC* pDC)
{
pDC->BitBlt(600, 300, 150, 200, m_pdcPlayerMem,
0, 0, SRCCOPY);
}
The above used to work well, in 2008. Not sure about VS2012.
Or you might try:
CBitmap m_bmCB1; CBitmapButton m_bbCB1;
m_bmCB1.LoadBitmap(IDBMP_CARDBACK_0);
HBITMAP hcb1 = (HBITMAP)m_bmCB1.GetSafeHandle();
m_bbCB1.SetBitmap(hcb1);