I have the following bit of code in my application:
Set picSource.Picture = LoadPicture(sFile)
Const PIXEL = 3
picSource.ScaleMode = PIXEL
picDest.ScaleMode = PIXEL
hDestDC = picDest.hDC
x = 0
y = 0
' Assign information of the source bitmap.
hSrcDC = picSource.hDC
lReturn = BitBlt(hDestDC, _
The picture loads into picSource okay, and the DCs appear to be set up correctly. But after the BitBlt, picDest.picture is always empty (ie., 0). The idea of the exercise is to copy a section (bounded by iLeft, iTop, iWidth, iHeight) of the picture in picSource to picDest. But, obviously, it's not working. Why not?