Code:
Public Sub CaptureContainer(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
'StretchBlt DestinationHDC, 0, 0, SourceWidth, SourceHeight, SourceHWND, SourceX, SourceY, SourceWidth, SourceHeight, vbSrcCopy
End Sub
using these code i can capture the parent without a problem
my problem is: why i can't:
Code:
usercontrol.picture=nothing
usercontrol.maskpicture=nothing
(after these code i use the CaptureContainer() sub)
???
why the usercontrol isn't clean?
(unless i use 'doevents' before the CaptureContainer() sub)