Hi, I think this is an easy question. I am trying to set a bitmap into a CStatic object, using SetBitmap. It works fine for resources, but I would like to use it for a bitmap I am creating on my own, and is continuously being updated with input from a camera. I was using BitBlt, and this was working, but I wanted a way to refresh parts of the bitmap without having to blt all the time. So I thought giving the bitmap to a static control, and letting it take care of the blitting and rectangle invalidations itself, and I just hand it the bitmap. The bitmap is named mCaptureBmp (initialized with camera data with SetDIBits()) -- but instead of BitBlt(), I do mStcCapture.SetBitmap(mCaptureBmp); I just get a blank static control.
What could be wrong?