BitBlt? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

BitBlt?

I have some trouble with the following. The code works just fine for Win NT 4, butusing Win 2000 nothing shows.... It's supposed to draw a bitmap on the screen. Does anyone have any tips on what might be wrong?
Thanks.

[code]...View::OnDraw(CDC* pDC)
{
BITMAP bmpInfo ;
m_bitmap.GetBitmap(&bmpInfo) ;

dcMemory.SelectObject(&m_bitmap);

pDC->BitBlt(10, 10, bmpInfo.bmWidth, bmpInfo.bmHeight, &dcMemory, 0, 0, SRCCOPY);
}
[code]
Sign In or Register to comment.