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.
|