Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Test if window hanlde is valid

0 views
Skip to first unread message

Steve

unread,
Dec 21, 2009, 7:21:44 AM12/21/09
to
Is there a way, using the Framework, to determine if a given hWnd is
valid.

In the good ole days (or bad ole days depending on your perspective) I
would have used the Win32 API 'IsWindow(hWnd)'. I know that I can
still do this now with p/invoke but I am wondering if the Framework
provides a similar function.

Thanks,
Steve

Peter Duniho

unread,
Dec 21, 2009, 3:13:59 PM12/21/09
to

No, it doesn't. As window handles are an unmanaged concept, basically
foreign to managed code, you have to use unmanaged code to test for
validity.

Pete

0 new messages