I made a MFC app, made a bitmap import to resources (IDB_BITMAP1) and trying to display it.
So I made " CBitmap bm " and " CDC mem " variables in CView class and the following code was paste in OnDraw function:
Code:
bm.LoadBitmap(IDB_BITMAP1); mem.CreateCompatibleDC(pDC); mem.SelectObject(&bm); pDC->BitBlt(10,10, 512, 512, &mem, 0,0, SRCCOPY);
I guess this is "invalidating" problem... What code do I need to paste in the programm?
Thanks!


This topic is no longer actual