>
>Hello,
>
>I have just tried outthe code that was shown to us here but UI experienced some problems. It does not work always. Of course, there is another problem : it captures the entire screen and not only the active window ... or am I missing something here ?
>
>Pat
There are a couple of things here. One, the documentation (Win32.hlp) indicates that passing a 1 returns the active window, and 0 the entire Windows desktop. My experience is that it's the other way around. Two, the term active window, does not apply to child windows. Now if a form is defined as a desktop form, and is active, you should get just the form itself. I haven't tested it, but given the behavior of the call, I would guess that this is the case.
George
Ubi caritas et amor, deus ibi est