Thanks to Dennis for info on Window handle. From
your info, it seems I will have to alter the API call which is the offender. It
is
CapCreateWindow(params........., and it may prove to be the only viable
solution instead of how I did it following.......
In fact, it is not the API which is the offender I have found,
rather the BT848 chipset on the video card which is causing Windows major
problems with recognition of the device and/or window handle. Currently the only
way to make it perform properly with this particular card is to use the
call: showwindow(hwndC,SW_SW_HIDE); when capturing needed data, then
SW_SHOW when finished. It also temporarly effects the whole mainform whilst
closing its child window - pretty messy indeed. Fortunately the BT848 chipset
was later scrapped or improved, but certainly it makes life difficult handling
errant hardware with software!
Cheers,
Alistair+
In your CreateWindow code, you will need to specify a class name as the first parameter.Why bother with createwindow, when you can use TWinControl.Create(). You can then assign panel to the parent property. Set the Align property to alClient and the new window will fill up the space inside the panel.Hope this helps.