Search code examples
c#.netwinformshwnd

Is this hWnd a child of mine?


How can I tell if an hWnd belongs to one of my child controls?

I want to do something like:

if(this.Controls.Find(hWnd) != null) return false;

Solution

  • There's a Win32 function for this: IsChild