View Single Post
  #3  
Old 06-29-2005, 06:18 PM
OrcaDK OrcaDK is offline
Member
 
Join Date: Nov 2004
Posts: 42
Default Re: vb.net win32Api enumchildwindows help

[DllImport("User32.dll")]
static extern Boolean EnumChildWindows(int hWndParent,PChildCallBack lpEnumFunc,int lParam);

delegate bool PChildCallBack(int hWnd,int lParam);

private bool EnumChildWindowCallBack(int hwnd, int lParam)
{
// Do some crazy stuff in here
}

--

Call EnumChildWindows like this:
EnumChildWindows(windowHandle, new PChildCallBack(EnumChildWindowCallBack), intSomeInteger);

intSomeInteger can be any integer value, might be an ID of the owner window f.example.
Reply With Quote