i have 1 code, that works fine, for capture the container(parent):
but when i use on in side of my control:Code:Public Sub CaptureContiner(DestinationHDC As Long, SourceHWND As Long, SourceX As Long, SourceY As Long, SourceWidth As Long, SourceHeight As Long) 'SourceHWND = GetDC(SourceHWND) BitBlt DestinationHDC, 0, 0, SourceWidth, SourceHeight, SourceHWND, SourceX, SourceY, vbSrcCopy End Sub
it only catch the parent(container) image without controls(but like an image)Code:CaptureContiner PicAnimation(PicAnimation.Count - 1).hdc, UserControl.Parent.hdc, Extender.left, Extender.top, UserControl.Width, UserControl.Height
my error is these HDC?
UserControl.Parent.hdc???
or other?






Reply With Quote